GitHub check

Whole log, 10 KB
2026-10-25T07:31:09.4941185Z Current runner version: '2.338.0'
2026-10-25T07:31:09.4966962Z ##[group]Runner Image Provisioner
2026-10-25T07:31:09.4967832Z Hosted Compute Agent
2026-10-25T07:31:09.4968487Z Version: 20261021.618
2026-10-25T07:31:09.4969203Z Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e
2026-10-25T07:31:09.4969922Z Build Date: 2026-10-21T00:45:21Z
2026-10-25T07:31:09.4970733Z Worker ID: {f45ff8bb-7c5b-423a-b316-60be3b510a80}
2026-10-25T07:31:09.4971464Z Region: westcentralus
2026-10-25T07:31:09.4972080Z Cloud: Azure
2026-10-25T07:31:09.4972676Z ##[endgroup]
2026-10-25T07:31:09.4974704Z ##[group]Operating System
2026-10-25T07:31:09.4975447Z Ubuntu
2026-10-25T07:31:09.4975975Z 24.04.5
2026-10-25T07:31:09.4976480Z LTS
2026-10-25T07:31:09.4977133Z ##[endgroup]
2026-10-25T07:31:09.4977692Z ##[group]Runner Image
2026-10-25T07:31:09.4978347Z Image: ubuntu-24.04
2026-10-25T07:31:09.4978934Z Version: 20261012.334.1
2026-10-25T07:31:09.4980264Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
2026-10-25T07:31:09.4981906Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
2026-10-25T07:31:09.4983294Z ##[endgroup]
2026-10-25T07:31:09.4984731Z ##[group]GITHUB_TOKEN Permissions
2026-10-25T07:31:09.4986805Z Contents: read
2026-10-25T07:31:09.4987447Z Issues: write
2026-10-25T07:31:09.4987993Z Metadata: read
2026-10-25T07:31:09.4988638Z PullRequests: write
2026-10-25T07:31:09.4989270Z ##[endgroup]
2026-10-25T07:31:09.4991420Z Secret source: Actions
2026-10-25T07:31:09.4992437Z Cache mode: read
2026-10-25T07:31:09.4993923Z Prepare workflow directory
2026-10-25T07:31:09.5385241Z Prepare all required actions
2026-10-25T07:31:09.5432404Z Getting action download info
2026-10-25T07:31:09.8375229Z Download action repository 'mitchellh/vouch@v1' (SHA:d66fa29a64600490892131ad87597c30c91fcac4)
2026-10-25T07:31:10.1959502Z Download action repository 'actions/github-script@v8' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd)
2026-10-25T07:31:10.6956454Z Getting action download info
2026-10-25T07:31:10.7989048Z Download action repository 'hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30' (SHA:920172d92eb04671776f3ba69d605d3b09351c30)
2026-10-25T07:31:11.4695735Z Complete job name: Label PR 24770
2026-10-25T07:31:11.5672462Z ##[group]Run mitchellh/vouch/action/check-user@v1
2026-10-25T07:31:11.5674354Z with:
2026-10-25T07:31:11.5675232Z   user: juliusmarminge
2026-10-25T07:31:11.5676209Z   allow-fail: true
2026-10-25T07:31:11.5677175Z   vouched-file: .github/VOUCHED.td
2026-10-25T07:31:11.5678478Z env:
2026-10-25T07:31:11.5688608Z   GITHUB_TOKEN: ***
2026-10-25T07:31:11.5689564Z ##[endgroup]
2026-10-25T07:31:11.5759028Z ##[start-action display=Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30;id=vouch.__hustcer_setup-nu]
2026-10-25T07:31:11.5891948Z ##[group]Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30
2026-10-25T07:31:11.5893708Z with:
2026-10-25T07:31:11.5894599Z   version: *
2026-10-25T07:31:11.5895487Z   features: default
2026-10-25T07:31:11.5896452Z   check-latest: false
2026-10-25T07:31:11.5897416Z   enable-plugins: false
2026-10-25T07:31:11.5907442Z   github-token: ***
2026-10-25T07:31:11.5908370Z env:
2026-10-25T07:31:11.5917734Z   GITHUB_TOKEN: ***
2026-10-25T07:31:11.5918690Z ##[endgroup]
2026-10-25T07:31:11.7293820Z versionSpec: *
2026-10-25T07:31:11.7294972Z coerce version: *
2026-10-25T07:31:12.5344607Z Try to get assets for Nu: arch = x64, platform = linux, feature = default
2026-10-25T07:31:13.2615511Z [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/ea242a8d-4f1b-4c34-b0f3-ce071ab6f59e -f /home/runner/work/_temp/3cfdf233-4239-4cd7-aa5f-9b4f91c53688
2026-10-25T07:31:15.0978259Z Successfully setup Nu 0.116.1, with default features.
2026-10-25T07:31:15.0994330Z Current directory: /home/runner/work/t3code/t3code
2026-10-25T07:31:15.1171246Z ##[end-action id=vouch.__hustcer_setup-nu;outcome=success;conclusion=success;duration_ms=3540]
2026-10-25T07:31:15.1214448Z ##[start-action display=Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *;id=vouch.run]
2026-10-25T07:31:15.1986491Z ##[group]Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *
2026-10-25T07:31:15.1987290Z use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *
2026-10-25T07:31:15.1987745Z
2026-10-25T07:31:15.1988008Z let repo_data = (gh-check-user "juliusmarminge"
2026-10-25T07:31:15.1988350Z   -R "pingdotgg/t3code"
2026-10-25T07:31:15.1988616Z   --vouched-repo ""
2026-10-25T07:31:15.1988889Z   --vouched-file ".github/VOUCHED.td"
2026-10-25T07:31:15.1989176Z )
2026-10-25T07:31:15.1989377Z
2026-10-25T07:31:15.1989605Z let status = $repo_data.status
2026-10-25T07:31:15.1989908Z print $"User juliusmarminge: ($status)"
2026-10-25T07:31:15.1990285Z let vouched = $status in ["bot", "collaborator", "vouched"]
2026-10-25T07:31:15.1990681Z $"status=($status)\nvouched=($vouched)"
2026-10-25T07:31:15.1991013Z   | save --append $env.GITHUB_OUTPUT
2026-10-25T07:31:15.1991299Z
2026-10-25T07:31:15.1991510Z if "true" != "true" {
2026-10-25T07:31:15.1991791Z   if $status in ["denounced", "unknown"] {
2026-10-25T07:31:15.1992087Z     error make {
2026-10-25T07:31:15.1992393Z       msg: $"User juliusmarminge is not vouched \(($status))"
2026-10-25T07:31:15.1992729Z     }
2026-10-25T07:31:15.1993113Z   }
2026-10-25T07:31:15.1993297Z }
2026-10-25T07:31:15.1998129Z shell: /opt/hostedtoolcache/nushell/0.116.1/x64/nu {0}
2026-10-25T07:31:15.1998456Z env:
2026-10-25T07:31:15.2001349Z   GITHUB_TOKEN: ***
2026-10-25T07:31:15.2001580Z ##[endgroup]
2026-10-25T07:31:15.2298519Z Warning: nu::parser::deprecated
2026-10-25T07:31:15.2298934Z
2026-10-25T07:31:15.2299071Z   ! Command deprecated.
2026-10-25T07:31:15.2300161Z     ,-[/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch/file.nu:43:25]
2026-10-25T07:31:15.2301430Z  42 | export def parse-handle [handle: string] {
2026-10-25T07:31:15.2303060Z  43 |   let parts = $handle | str downcase | split row ":" --number 2
2026-10-25T07:31:15.2303726Z     :                         ^^^^^^|^^^^^
2026-10-25T07:31:15.2304289Z     :                               `-- str downcase was deprecated in 0.114.0 and will be removed in a future release.
2026-10-25T07:31:15.2304932Z  44 |   if ($parts | length) > 1 {
2026-10-25T07:31:15.2305193Z     `----
2026-10-25T07:31:15.2305403Z   help: Use `str lowercase` instead.
2026-10-25T07:31:15.2305726Z
2026-10-25T07:31:15.5222460Z User juliusmarminge: collaborator
2026-10-25T07:31:15.5267235Z ##[end-action id=vouch.run;outcome=success;conclusion=success;duration_ms=405]
2026-10-25T07:31:15.5458343Z ##[group]Run actions/github-script@v8
2026-10-25T07:31:15.5458645Z with:
2026-10-25T07:31:15.5466872Z   script: const issueNumber = Number(process.env.PR_NUMBER);
const status = process.env.VOUCH_STATUS;
const managedLabels = [
  {
    name: "vouch:trusted",
    color: "1f883d",
    description: "PR author is trusted by repo permissions or the VOUCHED list.",
  },
  {
    name: "vouch:unvouched",
    color: "fbca04",
    description: "PR author is not yet trusted in the VOUCHED list.",
  },
  {
    name: "vouch:denounced",
    color: "d1242f",
    description: "PR author is explicitly blocked by the VOUCHED list.",
  },
];

const managedLabelNames = new Set(managedLabels.map((label) => label.name));

for (const label of managedLabels) {
  try {
    const { data: existing } = await github.rest.issues.getLabel({
      owner: context.repo.owner,
      repo: context.repo.repo,
      name: label.name,
    });

    if (
      existing.color !== label.color ||
      (existing.description ?? "") !== label.description
    ) {
      await github.rest.issues.updateLabel({
        owner: context.repo.owner,
        repo: context.repo.repo,
        name: label.name,
        color: label.color,
        description: label.description,
      });
    }
  } catch (error) {
    if (error.status !== 404) {
      throw error;
    }

    try {
      await github.rest.issues.createLabel({
        owner: context.repo.owner,
        repo: context.repo.repo,
        name: label.name,
        color: label.color,
        description: label.description,
      });
    } catch (createError) {
      if (createError.status !== 422) {
        throw createError;
      }
    }
  }
}

const nextLabelName =
  status === "denounced"
    ? "vouch:denounced"
    : ["bot", "collaborator", "vouched"].includes(status)
      ? "vouch:trusted"
      : "vouch:unvouched";

const { data: currentLabels } = await github.rest.issues.listLabelsOnIssue({
  owner: context.repo.owner,
  repo: context.repo.repo,
  issue_number: issueNumber,
  per_page: 100,
});

for (const label of currentLabels) {
  if (!managedLabelNames.has(label.name) || label.name === nextLabelName) {
    continue;
  }

  try {
    await github.rest.issues.removeLabel({
      owner: context.repo.owner,
      repo: context.repo.repo,
      issue_number: issueNumber,
      name: label.name,
    });
  } catch (removeError) {
    if (removeError.status !== 404) {
      throw removeError;
    }
  }
}

if (!currentLabels.some((label) => label.name === nextLabelName)) {
  await github.rest.issues.addLabels({
    owner: context.repo.owner,
    repo: context.repo.repo,
    issue_number: issueNumber,
    labels: [nextLabelName],
  });
}

core.info(`PR #${issueNumber}: ${status} -> ${nextLabelName}`);

2026-10-25T07:31:15.5478129Z   github-token: ***
2026-10-25T07:31:15.5478352Z   debug: false
2026-10-25T07:31:15.5478572Z   user-agent: actions/github-script
2026-10-25T07:31:15.5478842Z   result-encoding: json
2026-10-25T07:31:15.5479061Z   retries: 0
2026-10-25T07:31:15.5479308Z   retry-exempt-status-codes: 400,401,403,404,422
2026-10-25T07:31:15.5479598Z env:
2026-10-25T07:31:15.5479779Z   PR_NUMBER: 24770
2026-10-25T07:31:15.5480001Z   VOUCH_STATUS: collaborator
2026-10-25T07:31:15.5480234Z ##[endgroup]
2026-10-25T07:31:16.5126388Z PR #24770: collaborator -> vouch:trusted
2026-10-25T07:31:16.5282706Z Cleaning up orphan processes