GitHub check

Whole log, 10 KB
Current runner version: '2.338.0'
▸ Runner Image Provisioner
Hosted Compute Agent
Version: 20261012.601
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {ae8e3260-77f9-47fa-a4d8-18032001b93b}
Region: southcentralus
Cloud: Azure
▸ Operating System
Ubuntu
24.04.5
LTS
▸ Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
▸ GITHUB_TOKEN Permissions
Contents: read
Issues: write
Metadata: read
PullRequests: write
Secret source: Actions
Cache mode: read
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'mitchellh/vouch@v1' (SHA:d66fa29a64600490892131ad87597c30c91fcac4)
Download action repository 'actions/github-script@v8' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd)
Getting action download info
Download action repository 'hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30' (SHA:920172d92eb04671776f3ba69d605d3b09351c30)
Complete job name: Label PR 23970
▸ Run mitchellh/vouch/action/check-user@v1
with:
  user: yordis
  allow-fail: true
  vouched-file: .github/VOUCHED.td
env:
  GITHUB_TOKEN: ***
##[start-action display=Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30;id=vouch.__hustcer_setup-nu]
▸ Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30
with:
  version: *
  features: default
  check-latest: false
  enable-plugins: false
  github-token: ***
env:
  GITHUB_TOKEN: ***
versionSpec: *
coerce version: *
Try to get assets for Nu: arch = x64, platform = linux, feature = default
[command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/1479d9ed-bad9-4fa3-8ef8-614caec2ca26 -f /home/runner/work/_temp/45b71a2c-1fbb-4c07-9b9d-92b78e0f9ed7
Successfully setup Nu 0.116.1, with default features.
Current directory: /home/runner/work/t3code/t3code
##[end-action id=vouch.__hustcer_setup-nu;outcome=success;conclusion=success;duration_ms=3629]
##[start-action display=Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *;id=vouch.run]
▸ Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *
use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *

let repo_data = (gh-check-user "yordis"
  -R "pingdotgg/t3code"
  --vouched-repo ""
  --vouched-file ".github/VOUCHED.td"
)

let status = $repo_data.status
print $"User yordis: ($status)"
let vouched = $status in ["bot", "collaborator", "vouched"]
$"status=($status)\nvouched=($vouched)"
  | save --append $env.GITHUB_OUTPUT

if "true" != "true" {
  if $status in ["denounced", "unknown"] {
    error make {
      msg: $"User yordis is not vouched \(($status))"
    }
  }
}
shell: /opt/hostedtoolcache/nushell/0.116.1/x64/nu {0}
env:
  GITHUB_TOKEN: ***
Warning: nu::parser::deprecated

  ! Command deprecated.
    ,-[/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch/file.nu:43:25]
 42 | export def parse-handle [handle: string] {
 43 |   let parts = $handle | str downcase | split row ":" --number 2
    :                         ^^^^^^|^^^^^
    :                               `-- str downcase was deprecated in 0.114.0 and will be removed in a future release.
 44 |   if ($parts | length) > 1 {
    `----
  help: Use `str lowercase` instead.

User yordis: vouched
##[end-action id=vouch.run;outcome=success;conclusion=success;duration_ms=973]
▸ Run actions/github-script@v8
with:
  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}`);

  github-token: ***
  debug: false
  user-agent: actions/github-script
  result-encoding: json
  retries: 0
  retry-exempt-status-codes: 400,401,403,404,422
env:
  PR_NUMBER: 23970
  VOUCH_STATUS: vouched
PR #23970: vouched -> vouch:trusted
Cleaning up orphan processes