GitHub check

Whole log, 10 KB
2026-10-24T12:37:50.7249462Z Current runner version: '2.338.0'
2026-10-24T12:37:50.7273467Z ##[group]Runner Image Provisioner
2026-10-24T12:37:50.7274529Z Hosted Compute Agent
2026-10-24T12:37:50.7275225Z Version: 20261012.601
2026-10-24T12:37:50.7275873Z Commit: f3dc54e1fb89da6852db922499a0233137369e1d
2026-10-24T12:37:50.7276644Z Build Date: 2026-10-12T17:48:21Z
2026-10-24T12:37:50.7277381Z Worker ID: {206abd15-3b2d-48ec-ac9d-96d95b78ac95}
2026-10-24T12:37:50.7278112Z Region: northcentralus
2026-10-24T12:37:50.7279097Z Cloud: Azure
2026-10-24T12:37:50.7279662Z ##[endgroup]
2026-10-24T12:37:50.7281274Z ##[group]Operating System
2026-10-24T12:37:50.7282001Z Ubuntu
2026-10-24T12:37:50.7282541Z 24.04.5
2026-10-24T12:37:50.7283124Z LTS
2026-10-24T12:37:50.7283637Z ##[endgroup]
2026-10-24T12:37:50.7284184Z ##[group]Runner Image
2026-10-24T12:37:50.7284874Z Image: ubuntu-24.04
2026-10-24T12:37:50.7285492Z Version: 20261012.334.1
2026-10-24T12:37:50.7286746Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
2026-10-24T12:37:50.7288286Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
2026-10-24T12:37:50.7289763Z ##[endgroup]
2026-10-24T12:37:50.7291109Z ##[group]GITHUB_TOKEN Permissions
2026-10-24T12:37:50.7293317Z Contents: read
2026-10-24T12:37:50.7293939Z Issues: write
2026-10-24T12:37:50.7294631Z Metadata: read
2026-10-24T12:37:50.7295216Z PullRequests: write
2026-10-24T12:37:50.7295781Z ##[endgroup]
2026-10-24T12:37:50.7298193Z Secret source: Actions
2026-10-24T12:37:50.7299568Z Cache mode: read
2026-10-24T12:37:50.7300621Z Prepare workflow directory
2026-10-24T12:37:50.7728742Z Prepare all required actions
2026-10-24T12:37:50.7798280Z Getting action download info
2026-10-24T12:37:51.0330154Z Download action repository 'mitchellh/vouch@v1' (SHA:d66fa29a64600490892131ad87597c30c91fcac4)
2026-10-24T12:37:51.2839354Z Download action repository 'actions/github-script@v8' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd)
2026-10-24T12:37:51.6092712Z Getting action download info
2026-10-24T12:37:51.7254307Z Download action repository 'hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30' (SHA:920172d92eb04671776f3ba69d605d3b09351c30)
2026-10-24T12:37:52.0386676Z Complete job name: Label PR 24356
2026-10-24T12:37:52.1360818Z ##[group]Run mitchellh/vouch/action/check-user@v1
2026-10-24T12:37:52.1362723Z with:
2026-10-24T12:37:52.1363581Z   user: Ethereal49
2026-10-24T12:37:52.1364533Z   allow-fail: true
2026-10-24T12:37:52.1365512Z   vouched-file: .github/VOUCHED.td
2026-10-24T12:37:52.1366836Z env:
2026-10-24T12:37:52.1376099Z   GITHUB_TOKEN: ***
2026-10-24T12:37:52.1377068Z ##[endgroup]
2026-10-24T12:37:52.1446460Z ##[start-action display=Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30;id=vouch.__hustcer_setup-nu]
2026-10-24T12:37:52.1623514Z ##[group]Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30
2026-10-24T12:37:52.1625017Z with:
2026-10-24T12:37:52.1625852Z   version: *
2026-10-24T12:37:52.1626726Z   features: default
2026-10-24T12:37:52.1627713Z   check-latest: false
2026-10-24T12:37:52.1628859Z   enable-plugins: false
2026-10-24T12:37:52.1637420Z   github-token: ***
2026-10-24T12:37:52.1638455Z env:
2026-10-24T12:37:52.1646731Z   GITHUB_TOKEN: ***
2026-10-24T12:37:52.1647681Z ##[endgroup]
2026-10-24T12:37:52.3004121Z versionSpec: *
2026-10-24T12:37:52.3005266Z coerce version: *
2026-10-24T12:37:52.9883224Z Try to get assets for Nu: arch = x64, platform = linux, feature = default
2026-10-24T12:37:53.4518575Z [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/94a9e148-4c3d-4cf4-b9ea-4044f8cc5837 -f /home/runner/work/_temp/67faa49a-2210-400e-851d-b64be75632fa
2026-10-24T12:37:55.2360511Z Successfully setup Nu 0.116.1, with default features.
2026-10-24T12:37:55.2374957Z Current directory: /home/runner/work/t3code/t3code
2026-10-24T12:37:55.2579720Z ##[end-action id=vouch.__hustcer_setup-nu;outcome=success;conclusion=success;duration_ms=3113]
2026-10-24T12:37:55.2626172Z ##[start-action display=Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *;id=vouch.run]
2026-10-24T12:37:55.3021011Z ##[group]Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *
2026-10-24T12:37:55.3021805Z use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *
2026-10-24T12:37:55.3022261Z
2026-10-24T12:37:55.3022515Z let repo_data = (gh-check-user "Ethereal49"
2026-10-24T12:37:55.3022988Z   -R "pingdotgg/t3code"
2026-10-24T12:37:55.3023269Z   --vouched-repo ""
2026-10-24T12:37:55.3023553Z   --vouched-file ".github/VOUCHED.td"
2026-10-24T12:37:55.3023859Z )
2026-10-24T12:37:55.3024051Z
2026-10-24T12:37:55.3024277Z let status = $repo_data.status
2026-10-24T12:37:55.3024590Z print $"User Ethereal49: ($status)"
2026-10-24T12:37:55.3024988Z let vouched = $status in ["bot", "collaborator", "vouched"]
2026-10-24T12:37:55.3025390Z $"status=($status)\nvouched=($vouched)"
2026-10-24T12:37:55.3025718Z   | save --append $env.GITHUB_OUTPUT
2026-10-24T12:37:55.3026001Z
2026-10-24T12:37:55.3026200Z if "true" != "true" {
2026-10-24T12:37:55.3026483Z   if $status in ["denounced", "unknown"] {
2026-10-24T12:37:55.3026779Z     error make {
2026-10-24T12:37:55.3027082Z       msg: $"User Ethereal49 is not vouched \(($status))"
2026-10-24T12:37:55.3027410Z     }
2026-10-24T12:37:55.3027601Z   }
2026-10-24T12:37:55.3027788Z }
2026-10-24T12:37:55.3032589Z shell: /opt/hostedtoolcache/nushell/0.116.1/x64/nu {0}
2026-10-24T12:37:55.3032934Z env:
2026-10-24T12:37:55.3035533Z   GITHUB_TOKEN: ***
2026-10-24T12:37:55.3035772Z ##[endgroup]
2026-10-24T12:37:55.3324650Z Warning: nu::parser::deprecated
2026-10-24T12:37:55.3324941Z
2026-10-24T12:37:55.3325122Z   ! Command deprecated.
2026-10-24T12:37:55.3325689Z     ,-[/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch/file.nu:43:25]
2026-10-24T12:37:55.3326478Z  42 | export def parse-handle [handle: string] {
2026-10-24T12:37:55.3327218Z  43 |   let parts = $handle | str downcase | split row ":" --number 2
2026-10-24T12:37:55.3327734Z     :                         ^^^^^^|^^^^^
2026-10-24T12:37:55.3328642Z     :                               `-- str downcase was deprecated in 0.114.0 and will be removed in a future release.
2026-10-24T12:37:55.3329534Z  44 |   if ($parts | length) > 1 {
2026-10-24T12:37:55.3329871Z     `----
2026-10-24T12:37:55.3330142Z   help: Use `str lowercase` instead.
2026-10-24T12:37:55.3330497Z
2026-10-24T12:37:56.0397114Z User Ethereal49: unknown
2026-10-24T12:37:56.0443070Z ##[end-action id=vouch.run;outcome=success;conclusion=success;duration_ms=781]
2026-10-24T12:37:56.0626729Z ##[group]Run actions/github-script@v8
2026-10-24T12:37:56.0627029Z with:
2026-10-24T12:37:56.0635382Z   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-24T12:37:56.0646302Z   github-token: ***
2026-10-24T12:37:56.0646533Z   debug: false
2026-10-24T12:37:56.0646756Z   user-agent: actions/github-script
2026-10-24T12:37:56.0647028Z   result-encoding: json
2026-10-24T12:37:56.0647245Z   retries: 0
2026-10-24T12:37:56.0647501Z   retry-exempt-status-codes: 400,401,403,404,422
2026-10-24T12:37:56.0647793Z env:
2026-10-24T12:37:56.0647976Z   PR_NUMBER: 24356
2026-10-24T12:37:56.0648182Z   VOUCH_STATUS: unknown
2026-10-24T12:37:56.0648677Z ##[endgroup]
2026-10-24T12:37:56.9144908Z PR #24356: unknown -> vouch:unvouched
2026-10-24T12:37:56.9301925Z Cleaning up orphan processes