GitHub check

Whole log, 10 KB
2026-10-24T10:35:17.4687653Z Current runner version: '2.338.0'
2026-10-24T10:35:17.4708041Z ##[group]Runner Image Provisioner
2026-10-24T10:35:17.4708714Z Hosted Compute Agent
2026-10-24T10:35:17.4709187Z Version: 20261012.601
2026-10-24T10:35:17.4709778Z Commit: f3dc54e1fb89da6852db922499a0233137369e1d
2026-10-24T10:35:17.4710451Z Build Date: 2026-10-12T17:48:21Z
2026-10-24T10:35:17.4711046Z Worker ID: {c68ec3ac-8410-4491-9bee-159cdf604439}
2026-10-24T10:35:17.4711622Z Region: eastus
2026-10-24T10:35:17.4712069Z Cloud: Azure
2026-10-24T10:35:17.4712561Z ##[endgroup]
2026-10-24T10:35:17.4713629Z ##[group]Operating System
2026-10-24T10:35:17.4714404Z Ubuntu
2026-10-24T10:35:17.4714863Z 24.04.5
2026-10-24T10:35:17.4715282Z LTS
2026-10-24T10:35:17.4715756Z ##[endgroup]
2026-10-24T10:35:17.4716248Z ##[group]Runner Image
2026-10-24T10:35:17.4716806Z Image: ubuntu-24.04
2026-10-24T10:35:17.4717281Z Version: 20261012.334.1
2026-10-24T10:35:17.4718323Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
2026-10-24T10:35:17.4719565Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
2026-10-24T10:35:17.4720357Z ##[endgroup]
2026-10-24T10:35:17.4721431Z ##[group]GITHUB_TOKEN Permissions
2026-10-24T10:35:17.4723246Z Contents: read
2026-10-24T10:35:17.4723803Z Issues: write
2026-10-24T10:35:17.4724480Z Metadata: read
2026-10-24T10:35:17.4724998Z PullRequests: write
2026-10-24T10:35:17.4725472Z ##[endgroup]
2026-10-24T10:35:17.4727163Z Secret source: Actions
2026-10-24T10:35:17.4728073Z Cache mode: read
2026-10-24T10:35:17.4728783Z Prepare workflow directory
2026-10-24T10:35:17.4987498Z Prepare all required actions
2026-10-24T10:35:17.5025997Z Getting action download info
2026-10-24T10:35:17.7031289Z Download action repository 'mitchellh/vouch@v1' (SHA:d66fa29a64600490892131ad87597c30c91fcac4)
2026-10-24T10:35:17.8559987Z Download action repository 'actions/github-script@v8' (SHA:ed597411d8f924073f98dfc5c65a23a2325f34cd)
2026-10-24T10:35:18.0260243Z Getting action download info
2026-10-24T10:35:18.0817826Z Download action repository 'hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30' (SHA:920172d92eb04671776f3ba69d605d3b09351c30)
2026-10-24T10:35:18.2029214Z Complete job name: Label PR 24391
2026-10-24T10:35:18.2665005Z ##[group]Run mitchellh/vouch/action/check-user@v1
2026-10-24T10:35:18.2665822Z with:
2026-10-24T10:35:18.2666170Z   user: juliusmarminge
2026-10-24T10:35:18.2666553Z   allow-fail: true
2026-10-24T10:35:18.2666932Z   vouched-file: .github/VOUCHED.td
2026-10-24T10:35:18.2667461Z env:
2026-10-24T10:35:18.2670437Z   GITHUB_TOKEN: ***
2026-10-24T10:35:18.2670811Z ##[endgroup]
2026-10-24T10:35:18.2718801Z ##[start-action display=Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30;id=vouch.__hustcer_setup-nu]
2026-10-24T10:35:18.2824913Z ##[group]Run hustcer/setup-nu@920172d92eb04671776f3ba69d605d3b09351c30
2026-10-24T10:35:18.2825520Z with:
2026-10-24T10:35:18.2825847Z   version: *
2026-10-24T10:35:18.2826174Z   features: default
2026-10-24T10:35:18.2826547Z   check-latest: false
2026-10-24T10:35:18.2826910Z   enable-plugins: false
2026-10-24T10:35:18.2829840Z   github-token: ***
2026-10-24T10:35:18.2830198Z env:
2026-10-24T10:35:18.2833031Z   GITHUB_TOKEN: ***
2026-10-24T10:35:18.2833429Z ##[endgroup]
2026-10-24T10:35:18.3878805Z versionSpec: *
2026-10-24T10:35:18.3879350Z coerce version: *
2026-10-24T10:35:19.0310594Z Try to get assets for Nu: arch = x64, platform = linux, feature = default
2026-10-24T10:35:19.3914332Z [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/d1f1857c-6570-4cb4-b2bd-fc57769757ec -f /home/runner/work/_temp/994ef514-8d24-4bdb-ad35-517bab8b9cde
2026-10-24T10:35:22.1895103Z Successfully setup Nu 0.116.1, with default features.
2026-10-24T10:35:22.1895614Z Current directory: /home/runner/work/t3code/t3code
2026-10-24T10:35:22.2038106Z ##[end-action id=vouch.__hustcer_setup-nu;outcome=success;conclusion=success;duration_ms=3931]
2026-10-24T10:35:22.2070888Z ##[start-action display=Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *;id=vouch.run]
2026-10-24T10:35:22.2104809Z ##[group]Run use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *
2026-10-24T10:35:22.2105482Z use "/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch" *
2026-10-24T10:35:22.2105894Z
2026-10-24T10:35:22.2106161Z let repo_data = (gh-check-user "juliusmarminge"
2026-10-24T10:35:22.2106477Z   -R "pingdotgg/t3code"
2026-10-24T10:35:22.2106738Z   --vouched-repo ""
2026-10-24T10:35:22.2107007Z   --vouched-file ".github/VOUCHED.td"
2026-10-24T10:35:22.2107275Z )
2026-10-24T10:35:22.2107479Z
2026-10-24T10:35:22.2107710Z let status = $repo_data.status
2026-10-24T10:35:22.2107991Z print $"User juliusmarminge: ($status)"
2026-10-24T10:35:22.2108326Z let vouched = $status in ["bot", "collaborator", "vouched"]
2026-10-24T10:35:22.2108667Z $"status=($status)\nvouched=($vouched)"
2026-10-24T10:35:22.2108957Z   | save --append $env.GITHUB_OUTPUT
2026-10-24T10:35:22.2109212Z
2026-10-24T10:35:22.2109418Z if "true" != "true" {
2026-10-24T10:35:22.2109675Z   if $status in ["denounced", "unknown"] {
2026-10-24T10:35:22.2109956Z     error make {
2026-10-24T10:35:22.2110249Z       msg: $"User juliusmarminge is not vouched \(($status))"
2026-10-24T10:35:22.2110546Z     }
2026-10-24T10:35:22.2110736Z   }
2026-10-24T10:35:22.2110927Z }
2026-10-24T10:35:22.2115172Z shell: /opt/hostedtoolcache/nushell/0.116.1/x64/nu {0}
2026-10-24T10:35:22.2115485Z env:
2026-10-24T10:35:22.2117735Z   GITHUB_TOKEN: ***
2026-10-24T10:35:22.2117961Z ##[endgroup]
2026-10-24T10:35:22.2346753Z Warning: nu::parser::deprecated
2026-10-24T10:35:22.2347079Z
2026-10-24T10:35:22.2347190Z   ! Command deprecated.
2026-10-24T10:35:22.2347671Z     ,-[/home/runner/work/_actions/mitchellh/vouch/v1/action/check-user/../../vouch/file.nu:43:25]
2026-10-24T10:35:22.2348107Z  42 | export def parse-handle [handle: string] {
2026-10-24T10:35:22.2348727Z  43 |   let parts = $handle | str downcase | split row ":" --number 2
2026-10-24T10:35:22.2349169Z     :                         ^^^^^^|^^^^^
2026-10-24T10:35:22.2349743Z     :                               `-- str downcase was deprecated in 0.114.0 and will be removed in a future release.
2026-10-24T10:35:22.2350321Z  44 |   if ($parts | length) > 1 {
2026-10-24T10:35:22.2350665Z     `----
2026-10-24T10:35:22.2351008Z   help: Use `str lowercase` instead.
2026-10-24T10:35:22.2351232Z
2026-10-24T10:35:22.4937466Z User juliusmarminge: collaborator
2026-10-24T10:35:22.4973701Z ##[end-action id=vouch.run;outcome=success;conclusion=success;duration_ms=290]
2026-10-24T10:35:22.5138055Z ##[group]Run actions/github-script@v8
2026-10-24T10:35:22.5138332Z with:
2026-10-24T10:35:22.5144346Z   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-24T10:35:22.5152366Z   github-token: ***
2026-10-24T10:35:22.5152593Z   debug: false
2026-10-24T10:35:22.5152820Z   user-agent: actions/github-script
2026-10-24T10:35:22.5153079Z   result-encoding: json
2026-10-24T10:35:22.5153299Z   retries: 0
2026-10-24T10:35:22.5153538Z   retry-exempt-status-codes: 400,401,403,404,422
2026-10-24T10:35:22.5153810Z env:
2026-10-24T10:35:22.5154006Z   PR_NUMBER: 24391
2026-10-24T10:35:22.5154321Z   VOUCH_STATUS: collaborator
2026-10-24T10:35:22.5154557Z ##[endgroup]
2026-10-24T10:35:23.9280162Z PR #24391: collaborator -> vouch:trusted
2026-10-24T10:35:23.9418092Z Cleaning up orphan processes