GitHub check

Whole log, 10 KB
2026-10-25T00:39:41.9292032Z Current runner version: '2.338.0'
2026-10-25T00:39:41.9326195Z ##[group]Runner Image Provisioner
2026-10-25T00:39:41.9327821Z Hosted Compute Agent
2026-10-25T00:39:41.9328850Z Version: 20261021.618
2026-10-25T00:39:41.9330011Z Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e
2026-10-25T00:39:41.9331234Z Build Date: 2026-10-21T00:45:21Z
2026-10-25T00:39:41.9332429Z Worker ID: {7386a75d-c904-4ca9-8b51-f28b5d2d5345}
2026-10-25T00:39:41.9333625Z Region: eastus
2026-10-25T00:39:41.9334599Z Cloud: Azure
2026-10-25T00:39:41.9335511Z ##[endgroup]
2026-10-25T00:39:41.9338231Z ##[group]Operating System
2026-10-25T00:39:41.9339354Z Ubuntu
2026-10-25T00:39:41.9340241Z 24.04.5
2026-10-25T00:39:41.9341161Z LTS
2026-10-25T00:39:41.9342052Z ##[endgroup]
2026-10-25T00:39:41.9342905Z ##[group]Runner Image
2026-10-25T00:39:41.9343971Z Image: ubuntu-24.04
2026-10-25T00:39:41.9344912Z Version: 20261012.334.1
2026-10-25T00:39:41.9347067Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
2026-10-25T00:39:41.9350052Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
2026-10-25T00:39:41.9351859Z ##[endgroup]
2026-10-25T00:39:41.9354098Z ##[group]GITHUB_TOKEN Permissions
2026-10-25T00:39:41.9356723Z Contents: read
2026-10-25T00:39:41.9358117Z Issues: write
2026-10-25T00:39:41.9359146Z Metadata: read
2026-10-25T00:39:41.9360031Z PullRequests: write
2026-10-25T00:39:41.9361063Z ##[endgroup]
2026-10-25T00:39:41.9364251Z Secret source: Actions
2026-10-25T00:39:41.9365827Z Cache mode: read
2026-10-25T00:39:41.9366936Z Prepare workflow directory
2026-10-25T00:39:41.9838561Z Prepare all required actions
2026-10-25T00:39:41.9910843Z Getting action download info
2026-10-25T00:39:42.1932579Z Download action repository 'mitchellh/vouch@v1' (SHA:d66fa29a64600490892131ad87597c30c91fcac4)
2026-10-25T00:39:42.3508962Z Download action repository 'actions/github-script@v8' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd)
2026-10-25T00:39:42.5331188Z Getting action download info
2026-10-25T00:39:42.6042315Z Download action repository 'hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30' (SHA:920172d92eb04671776f3ba69d605d3b09351c30)
2026-10-25T00:39:42.7603334Z Complete job name: Label PR 24356
2026-10-25T00:39:42.8575787Z ##[group]Run mitchellh/vouch/action/check-user@v1
2026-10-25T00:39:42.8577812Z with:
2026-10-25T00:39:42.8578638Z   user: Ethereal49
2026-10-25T00:39:42.8579478Z   allow-fail: true
2026-10-25T00:39:42.8580370Z   vouched-file: .github/VOUCHED.td
2026-10-25T00:39:42.8581703Z env:
2026-10-25T00:39:42.8591841Z   GITHUB_TOKEN: ***
2026-10-25T00:39:42.8592694Z ##[endgroup]
2026-10-25T00:39:42.8661622Z ##[start-action display=Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30;id=vouch.__hustcer_setup-nu]
2026-10-25T00:39:42.8843240Z ##[group]Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30
2026-10-25T00:39:42.8844632Z with:
2026-10-25T00:39:42.8845336Z   version: *
2026-10-25T00:39:42.8846078Z   features: default
2026-10-25T00:39:42.8846928Z   check-latest: false
2026-10-25T00:39:42.8848012Z   enable-plugins: false
2026-10-25T00:39:42.8857937Z   github-token: ***
2026-10-25T00:39:42.8858769Z env:
2026-10-25T00:39:42.8868139Z   GITHUB_TOKEN: ***
2026-10-25T00:39:42.8868998Z ##[endgroup]
2026-10-25T00:39:43.0525994Z versionSpec: *
2026-10-25T00:39:43.0527067Z coerce version: *
2026-10-25T00:39:43.7318967Z Try to get assets for Nu: arch = x64, platform = linux, feature = default
2026-10-25T00:39:44.2762837Z [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/b7ebdde8-d04b-428a-93f9-890d1edd6ba3 -f /home/runner/work/_temp/94e05fdb-98d5-465d-8c22-48e882f6a05c
2026-10-25T00:39:46.3120922Z Successfully setup Nu 0.116.1, with default features.
2026-10-25T00:39:46.3142276Z Current directory: /home/runner/work/t3code/t3code
2026-10-25T00:39:46.3333478Z ##[end-action id=vouch.__hustcer_setup-nu;outcome=success;conclusion=success;duration_ms=3466]
2026-10-25T00:39:46.3379070Z ##[start-action display=Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *;id=vouch.run]
2026-10-25T00:39:46.4142956Z ##[group]Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *
2026-10-25T00:39:46.4143845Z use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *
2026-10-25T00:39:46.4144390Z
2026-10-25T00:39:46.4144698Z let repo_data = (gh-check-user "Ethereal49"
2026-10-25T00:39:46.4145081Z   -R "pingdotgg/t3code"
2026-10-25T00:39:46.4145410Z   --vouched-repo ""
2026-10-25T00:39:46.4145740Z   --vouched-file ".github/VOUCHED.td"
2026-10-25T00:39:46.4146078Z )
2026-10-25T00:39:46.4146324Z
2026-10-25T00:39:46.4146583Z let status = $repo_data.status
2026-10-25T00:39:46.4146950Z print $"User Ethereal49: ($status)"
2026-10-25T00:39:46.4147592Z let vouched = $status in ["bot", "collaborator", "vouched"]
2026-10-25T00:39:46.4148050Z $"status=($status)\nvouched=($vouched)"
2026-10-25T00:39:46.4148426Z   | save --append $env.GITHUB_OUTPUT
2026-10-25T00:39:46.4148760Z
2026-10-25T00:39:46.4149011Z if "true" != "true" {
2026-10-25T00:39:46.4149349Z   if $status in ["denounced", "unknown"] {
2026-10-25T00:39:46.4149701Z     error make {
2026-10-25T00:39:46.4150065Z       msg: $"User Ethereal49 is not vouched \(($status))"
2026-10-25T00:39:46.4150447Z     }
2026-10-25T00:39:46.4150690Z   }
2026-10-25T00:39:46.4150928Z }
2026-10-25T00:39:46.4156272Z shell: /opt/hostedtoolcache/nushell/0.116.1/x64/nu {0}
2026-10-25T00:39:46.4156667Z env:
2026-10-25T00:39:46.4159995Z   GITHUB_TOKEN: ***
2026-10-25T00:39:46.4160305Z ##[endgroup]
2026-10-25T00:39:46.4455153Z Warning: nu::parser::deprecated
2026-10-25T00:39:46.4455527Z
2026-10-25T00:39:46.4455652Z   ! Command deprecated.
2026-10-25T00:39:46.4456221Z     ,-[/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch/file.nu:43:25]
2026-10-25T00:39:46.4456886Z  42 | export def parse-handle [handle: string] {
2026-10-25T00:39:46.4457992Z  43 |   let parts = $handle | str downcase | split row ":" --number 2
2026-10-25T00:39:46.4458734Z     :                         ^^^^^^|^^^^^
2026-10-25T00:39:46.4459640Z     :                               `-- str downcase was deprecated in 0.114.0 and will be removed in a future release.
2026-10-25T00:39:46.4460711Z  44 |   if ($parts | length) > 1 {
2026-10-25T00:39:46.4461233Z     `----
2026-10-25T00:39:46.4461661Z   help: Use `str lowercase` instead.
2026-10-25T00:39:46.4462051Z
2026-10-25T00:39:47.0945013Z User Ethereal49: unknown
2026-10-25T00:39:47.0990673Z ##[end-action id=vouch.run;outcome=success;conclusion=success;duration_ms=761]
2026-10-25T00:39:47.1191206Z ##[group]Run actions/github-script@v8
2026-10-25T00:39:47.1191515Z with:
2026-10-25T00:39:47.1199598Z   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-25T00:39:47.1210791Z   github-token: ***
2026-10-25T00:39:47.1211019Z   debug: false
2026-10-25T00:39:47.1211241Z   user-agent: actions/github-script
2026-10-25T00:39:47.1211508Z   result-encoding: json
2026-10-25T00:39:47.1211727Z   retries: 0
2026-10-25T00:39:47.1211966Z   retry-exempt-status-codes: 400,401,403,404,422
2026-10-25T00:39:47.1212266Z env:
2026-10-25T00:39:47.1212450Z   PR_NUMBER: 24356
2026-10-25T00:39:47.1212661Z   VOUCH_STATUS: unknown
2026-10-25T00:39:47.1212881Z ##[endgroup]
2026-10-25T00:39:47.7757332Z PR #24356: unknown -> vouch:unvouched
2026-10-25T00:39:47.7931570Z Cleaning up orphan processes