GitHub check

Whole log, 10 KB
2026-10-24T05:44:51.2990762Z Current runner version: '2.338.0'
2026-10-24T05:44:51.3010215Z ##[group]Runner Image Provisioner
2026-10-24T05:44:51.3010795Z Hosted Compute Agent
2026-10-24T05:44:51.3011226Z Version: 20261021.618
2026-10-24T05:44:51.3011631Z Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e
2026-10-24T05:44:51.3012094Z Build Date: 2026-10-21T00:45:21Z
2026-10-24T05:44:51.3012507Z Worker ID: {89715e89-4570-48a6-bdb2-163494379125}
2026-10-24T05:44:51.3012959Z Region: centralus
2026-10-24T05:44:51.3013332Z Cloud: Azure
2026-10-24T05:44:51.3013660Z ##[endgroup]
2026-10-24T05:44:51.3014434Z ##[group]Operating System
2026-10-24T05:44:51.3014847Z Ubuntu
2026-10-24T05:44:51.3015193Z 24.04.5
2026-10-24T05:44:51.3015527Z LTS
2026-10-24T05:44:51.3015875Z ##[endgroup]
2026-10-24T05:44:51.3016322Z ##[group]Runner Image
2026-10-24T05:44:51.3016725Z Image: ubuntu-24.04
2026-10-24T05:44:51.3017100Z Version: 20261012.334.1
2026-10-24T05:44:51.3017921Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
2026-10-24T05:44:51.3018793Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
2026-10-24T05:44:51.3019395Z ##[endgroup]
2026-10-24T05:44:51.3020173Z ##[group]GITHUB_TOKEN Permissions
2026-10-24T05:44:51.3021465Z Contents: read
2026-10-24T05:44:51.3021808Z Issues: write
2026-10-24T05:44:51.3022185Z Metadata: read
2026-10-24T05:44:51.3022539Z PullRequests: write
2026-10-24T05:44:51.3022921Z ##[endgroup]
2026-10-24T05:44:51.3024349Z Secret source: Actions
2026-10-24T05:44:51.3024901Z Cache mode: read
2026-10-24T05:44:51.3025537Z Prepare workflow directory
2026-10-24T05:44:51.3897590Z Prepare all required actions
2026-10-24T05:44:51.3931662Z Getting action download info
2026-10-24T05:44:51.6742654Z Download action repository 'mitchellh/vouch@v1' (SHA:d66fa29a64600490892131ad87597c30c91fcac4)
2026-10-24T05:44:52.0083947Z Download action repository 'actions/github-script@v8' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd)
2026-10-24T05:44:52.6657828Z Getting action download info
2026-10-24T05:44:52.7624425Z Download action repository 'hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30' (SHA:920172d92eb04671776f3ba69d605d3b09351c30)
2026-10-24T05:44:53.3153459Z Complete job name: Label PR 24334
2026-10-24T05:44:53.6074261Z ##[group]Run mitchellh/vouch/action/check-user@v1
2026-10-24T05:44:53.6074636Z with:
2026-10-24T05:44:53.6074797Z   user: juliusmarminge
2026-10-24T05:44:53.6074949Z   allow-fail: true
2026-10-24T05:44:53.6075103Z   vouched-file: .github/VOUCHED.td
2026-10-24T05:44:53.6075322Z env:
2026-10-24T05:44:53.6077011Z   GITHUB_TOKEN: ***
2026-10-24T05:44:53.6077161Z ##[endgroup]
2026-10-24T05:44:53.6341693Z ##[start-action display=Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30;id=vouch.__hustcer_setup-nu]
2026-10-24T05:44:53.7291964Z ##[group]Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30
2026-10-24T05:44:53.7292264Z with:
2026-10-24T05:44:53.7292416Z   version: *
2026-10-24T05:44:53.7292575Z   features: default
2026-10-24T05:44:53.7292744Z   check-latest: false
2026-10-24T05:44:53.7292902Z   enable-plugins: false
2026-10-24T05:44:53.7294215Z   github-token: ***
2026-10-24T05:44:53.7294357Z env:
2026-10-24T05:44:53.7295568Z   GITHUB_TOKEN: ***
2026-10-24T05:44:53.7295751Z ##[endgroup]
2026-10-24T05:44:53.8270325Z versionSpec: *
2026-10-24T05:44:53.8270729Z coerce version: *
2026-10-24T05:44:54.5584960Z Try to get assets for Nu: arch = x64, platform = linux, feature = default
2026-10-24T05:44:55.1417063Z [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/d92e14ce-401b-4a20-ab37-ecd1dba4d864 -f /home/runner/work/_temp/4215f3fb-88fd-447e-835a-668c2a12e68a
2026-10-24T05:44:57.7291774Z Successfully setup Nu 0.116.1, with default features.
2026-10-24T05:44:57.7303988Z Current directory: /home/runner/work/t3code/t3code
2026-10-24T05:44:57.7458749Z ##[end-action id=vouch.__hustcer_setup-nu;outcome=success;conclusion=success;duration_ms=4111]
2026-10-24T05:44:57.7664675Z ##[start-action display=Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *;id=vouch.run]
2026-10-24T05:44:57.7875350Z ##[group]Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *
2026-10-24T05:44:57.7875884Z use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *
2026-10-24T05:44:57.7876269Z
2026-10-24T05:44:57.7876422Z let repo_data = (gh-check-user "juliusmarminge"
2026-10-24T05:44:57.7876615Z   -R "pingdotgg/t3code"
2026-10-24T05:44:57.7876780Z   --vouched-repo ""
2026-10-24T05:44:57.7877042Z   --vouched-file ".github/VOUCHED.td"
2026-10-24T05:44:57.7877270Z )
2026-10-24T05:44:57.7877430Z
2026-10-24T05:44:57.7877708Z let status = $repo_data.status
2026-10-24T05:44:57.7877988Z print $"User juliusmarminge: ($status)"
2026-10-24T05:44:57.7878196Z let vouched = $status in ["bot", "collaborator", "vouched"]
2026-10-24T05:44:57.7878414Z $"status=($status)\nvouched=($vouched)"
2026-10-24T05:44:57.7878603Z   | save --append $env.GITHUB_OUTPUT
2026-10-24T05:44:57.7878818Z
2026-10-24T05:44:57.7878981Z if "true" != "true" {
2026-10-24T05:44:57.7879212Z   if $status in ["denounced", "unknown"] {
2026-10-24T05:44:57.7879415Z     error make {
2026-10-24T05:44:57.7879591Z       msg: $"User juliusmarminge is not vouched \(($status))"
2026-10-24T05:44:57.7879778Z     }
2026-10-24T05:44:57.7879887Z   }
2026-10-24T05:44:57.7879990Z }
2026-10-24T05:44:57.7884498Z shell: /opt/hostedtoolcache/nushell/0.116.1/x64/nu {0}
2026-10-24T05:44:57.7884690Z env:
2026-10-24T05:44:57.7886399Z   GITHUB_TOKEN: ***
2026-10-24T05:44:57.7886558Z ##[endgroup]
2026-10-24T05:44:57.8085384Z Warning: nu::parser::deprecated
2026-10-24T05:44:57.8085648Z
2026-10-24T05:44:57.8085706Z   ! Command deprecated.
2026-10-24T05:44:57.8086284Z     ,-[/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch/file.nu:43:25]
2026-10-24T05:44:57.8086633Z  42 | export def parse-handle [handle: string] {
2026-10-24T05:44:57.8087350Z  43 |   let parts = $handle | str downcase | split row ":" --number 2
2026-10-24T05:44:57.8087627Z     :                         ^^^^^^|^^^^^
2026-10-24T05:44:57.8087981Z     :                               `-- str downcase was deprecated in 0.114.0 and will be removed in a future release.
2026-10-24T05:44:57.8088366Z  44 |   if ($parts | length) > 1 {
2026-10-24T05:44:57.8088648Z     `----
2026-10-24T05:44:57.8088821Z   help: Use `str lowercase` instead.
2026-10-24T05:44:57.8088964Z
2026-10-24T05:44:58.0827904Z User juliusmarminge: collaborator
2026-10-24T05:44:58.0866684Z ##[end-action id=vouch.run;outcome=success;conclusion=success;duration_ms=320]
2026-10-24T05:44:58.1870998Z ##[group]Run actions/github-script@v8
2026-10-24T05:44:58.1871194Z with:
2026-10-24T05:44:58.1875243Z   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-24T05:44:58.1881330Z   github-token: ***
2026-10-24T05:44:58.1881455Z   debug: false
2026-10-24T05:44:58.1881577Z   user-agent: actions/github-script
2026-10-24T05:44:58.1881726Z   result-encoding: json
2026-10-24T05:44:58.1881845Z   retries: 0
2026-10-24T05:44:58.1881989Z   retry-exempt-status-codes: 400,401,403,404,422
2026-10-24T05:44:58.1882145Z env:
2026-10-24T05:44:58.1882250Z   PR_NUMBER: 24334
2026-10-24T05:44:58.1882378Z   VOUCH_STATUS: collaborator
2026-10-24T05:44:58.1882509Z ##[endgroup]
2026-10-24T05:44:59.1238988Z PR #24334: collaborator -> vouch:trusted
2026-10-24T05:44:59.1373275Z Cleaning up orphan processes