fix: the toolchain install is not handed the forge's GitHub token (CP-41) #17

Merged
pit merged 2 commits from hermes/deploy-deps-without-github-token into main 2026-11-05 16:17:15 +00:00
Owner

Summary

The deploy of CP-41 died in make deps, before its snapshot — 143 is untouched. A push job is handed a GITHUB_TOKEN by the forge, mise offers it to api.github.com, and GitHub rejects it:

github auth: yes (token from GITHUB_TOKEN)
github response: { "message": "Bad credentials", "status": "401" }
mise ✗ opentofu@1.12.6  failed: 401 Unauthorized
mise ✗ python@3.13.16    failed: 504 Gateway Timeout
make: *** [Makefile:243: deps] Error 1

A pull-request job is not handed that token, so every check on #16 was green and the push was the first run to meet it. This change unsets it for the deps step in both workflows; the downloads need no token, and the green pull-request runs were anonymous downloads.

Evidence

  • Before: run 31 — deploy red in 31 s at make deps; dpkg -s semaphore on 143 still the previous build, no watchdog unit, no timer. The quote above is that run's job log, read at /actions/runs/31/jobs/0/attempt/1/logs (the API's …/actions/runs/<id>/jobs route answers a restricted reader 404; the web log route serves the text).
  • The step as it now runs: run 33, this head, pr-checks, executes env -u GITHUB_TOKEN make deps — the deploy's own line — and its log reads 7/7 · installed 7 tools in 4.0s, with opentofu 1.12.6 (2.3 s) and python 3.13.16 (3.0 s) among them: the two run 31 lost. It carries no github auth line, because a pull-request job is handed no token — so this run exercises the command shape, not the guard's effect.
  • No run can show the guard's effect before the merge. deploy.yml fires on push: [main] only, so the first execution of the guarded line is the merge itself — the same merge that re-runs the deploy of main, as Merge Danger says.
  • Not an after: run 27 (54 s, pull_request, pre-change) is the last anonymous install of the same seven tools before this change — the token-free install the guarded step now reproduces, not a run of it.
  • make check green on this branch (109 ok lines, rc 0); both workflow files parse, and the two deps steps are one command string.

Merge Danger

Door: two-way — reverting this restores a deploy that fails before it changes anything.

Blast Radius: the two workflows' deps step. Merging this is what re-runs the deploy of main (CP-41), so it is also the merge that puts 143 on the community build.

## Summary The deploy of CP-41 died in `make deps`, before its snapshot — 143 is untouched. A **push** job is handed a `GITHUB_TOKEN` by the forge, mise offers it to `api.github.com`, and GitHub rejects it: ```text github auth: yes (token from GITHUB_TOKEN) github response: { "message": "Bad credentials", "status": "401" } mise ✗ opentofu@1.12.6 failed: 401 Unauthorized mise ✗ python@3.13.16 failed: 504 Gateway Timeout make: *** [Makefile:243: deps] Error 1 ``` A pull-request job is not handed that token, so every check on #16 was green and the push was the first run to meet it. This change unsets it for the deps step in both workflows; the downloads need no token, and the green pull-request runs were anonymous downloads. ## Evidence - **Before:** [run 31](https://forgejo.thepit.space/olympus/infra-cockpit/actions/runs/31) — `deploy` red in 31 s at `make deps`; `dpkg -s semaphore` on 143 still the previous build, no watchdog unit, no timer. The quote above is that run's job log, read at `/actions/runs/31/jobs/0/attempt/1/logs` (the API's `…/actions/runs/<id>/jobs` route answers a restricted reader 404; the web log route serves the text). - **The step as it now runs:** [run 33](https://forgejo.thepit.space/olympus/infra-cockpit/actions/runs/33), this head, `pr-checks`, executes `env -u GITHUB_TOKEN make deps` — the deploy's own line — and its log reads `7/7 · installed 7 tools in 4.0s`, with opentofu 1.12.6 (2.3 s) and python 3.13.16 (3.0 s) among them: the two run 31 lost. It carries no `github auth` line, because a pull-request job is handed no token — so this run exercises the command shape, not the guard's effect. - **No run can show the guard's effect before the merge.** `deploy.yml` fires on `push: [main]` only, so the first execution of the guarded line is the merge itself — the same merge that re-runs the deploy of `main`, as Merge Danger says. - **Not an after:** [run 27](https://forgejo.thepit.space/olympus/infra-cockpit/actions/runs/27) (54 s, `pull_request`, pre-change) is the last anonymous install of the same seven tools *before* this change — the token-free install the guarded step now reproduces, not a run of it. - `make check` green on this branch (109 `ok` lines, rc 0); both workflow files parse, and the two deps steps are one command string. ## Merge Danger **Door:** two-way — reverting this restores a deploy that fails before it changes anything. **Blast Radius:** the two workflows' deps step. Merging this is what re-runs the deploy of `main` (CP-41), so it is also the merge that puts 143 on the community build.
fix: the toolchain install is not handed the forge's GitHub token (CP-41)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 41s
pr-checks / check (pull_request) Successful in 28s
3340b4c053
A push job is given a GITHUB_TOKEN by the forge. mise presents it to
api.github.com, which rejects it — "github auth: yes (token from
GITHUB_TOKEN) ... Bad credentials" — and the install of opentofu, python and
ansible fails with it, so the deploy died in `make deps` before its snapshot
and 143 never changed.

A pull-request job is not given that token, which is why every check on the
pull request was green and the push was the first run to meet it.

`env -u GITHUB_TOKEN make deps` in both workflows: the downloads need no
token, and an anonymous download is what the green pull-request runs did.
Member

Review started (round 1/5) on 3340b4c053 — reading the diff now.

**Review started** (round 1/5) on 3340b4c0538de926e169c7b444bcd46029744c31 — reading the diff now.
bot-minos approved these changes 2026-11-05 15:46:04 +00:00
Dismissed
bot-minos left a comment

repo=olympus/infra-cockpit · PR #17 · head 3340b4c053 · round 1/5 (this thread has 0 earlier reviews; the dispatch also said 1/5) · verdict: APPROVE, no blocker

Recommendation: merge

Spec source: the PR body (no linked forge issue; the repo's tickets live in Vikunja). It names CP-41 only as the deploy that broke; CP-41's own scope list is the community-build work of #16 and says it "closes when its pull request is green", so no ticket yet carries this fix (process note, below). The body states the contract: unset GITHUB_TOKEN for the deps step in both workflows, because the forge hands push jobs a token that mise offers to GitHub and GitHub rejects.
Standards source: AGENTS.md (§Toolchain, §Pull requests), docs/agents/issue-tracker.md §Resolving the task a pull request addresses, workshop ADR-0001 read from main (declare and lock the toolchain). Diff scope: deploy.yml +5/-1, pr-checks.yml +3/-1; nothing else moved.

Standards

No BLOCKER.

  • ADVISORY — .forgejo/workflows/pr-checks.yml:18-21: the guard is added to a job the body says is never handed the token ("A pull-request job is not handed that token"); the comment itself says "for the day a pull-request job is handed a forge token too". Possible Speculative Generality (baseline smell, a judgement call; no repo rule forbids it). Note it is not idle: run 33 is green at this head with env -u GITHUB_TOKEN make deps (Install step success, 8 s), so it is the one run in the repo that exercises the new command shape. Keep or drop; it is a nit and does not move the verdict.
  • Passed: AGENTS.md §Pull requests ("Name the task a pull request addresses in its body as CP-<index>") — CP-41 is named in title and body. ADR-0001 is not touched: mise.toml/mise.lock unchanged, [tool_config] locked = true still in force.

Spec

No BLOCKER.

  • ADVISORY — body §Evidence, "After": run 27 (pr-checks, SHA d330d79, a pull_request run before this change) is a pre-change anonymous install, not an after. No run can exercise this fix on the push path before it merges — deploy.yml fires on push: [main] only — so the first real test of the change is the merge itself, which the body discloses ("Merging this is what re-runs the deploy of main"). What I reproduced, and what I could not:
    • Reproduced: with GITHUB_TOKEN unset, the repo's full mise install (head tree, mise.lock enforced, empty data dirs, mise 2026.10.8 = the Makefile pin) installs all seven tools, then mise exec -- runs tofu 1.12.6, jq 1.7, age 1.3.2, bao 2.7.1, uv 0.13.1, python 3.13.16 and ansible-core 2.21.5 with a bogus GITHUB_TOKEN exported and makes zero api.github.com calls — so after the guarded step nothing later in the deploy meets the token via mise.
    • Reproduced: mise takes the token from GITHUB_TOKEN (mise token github answers "source: GITHUB_TOKEN"), and api.github.com answers a bogus bearer 401 and the anonymous call 200 for the same opentofu asset the lock lists as url_api.
    • Observed: run 31's Install the toolchain step failed in 29 s and every later step skipped; run 33 (this head, pull_request) is green. The job log of run 31 is not readable from here (the logs route 404s), so the quoted 401 is the author's transcription.
    • NOT reproduced: the 401 itself. On this host, a bogus GITHUB_TOKEN with the lock enforced still installs everything (mise used the url entries, not url_api), so I could not make the token fail the install, only show that removing it cannot. The mechanism is plausible and the guard strictly removes the claimed cause, but the end-to-end claim rests on the runner's own result at merge. The door is two-way and fails before the snapshot, as the body says.

Named, not charged

  • The quoted log also shows python@3.13.16 failed: 504 Gateway Timeout. A 504 is not a token fault, this change does not touch it, and make deps has no retry; if the deploy goes red again at the same step with a 504, this change was not the cause. Not claimed by the PR, not charged.
  • env -u clears only GITHUB_TOKEN; mise also reads MISE_GITHUB_TOKEN and GITHUB_API_TOKEN. The failing log names GITHUB_TOKEN as the source, so the guard matches the evidence; no other source is known to be set on the runner.
  • Process note: no ticket carries this fix (CP-41 closes with #16). The Operator may want a CP-<n> of its own, since docs/agents/issue-tracker.md has the task resolved on the task rather than by the merge.

Verified

Head resolved from refs/pull/17/head = 3340b4c053, equal to the dispatch SHA; worktree at that head, removed after. Diff read in full (two workflow files). Probes run by hand under cache/scratch/infra-cockpit-pr17-r1/: bare-token install vs env -u guard vs the literal wrapper shape (all rc 0 here), a post-install mise exec census, a trace of one fresh opentofu install under a bogus token, the raw API's answer to a bogus bearer. CI by SHA: pr-checks run 33 green (28 s), plan run 32 green (41 s). Not verified: the push-path deploy at this head (it cannot run before merge), and the failing log text.

Summary

Axis Findings Worst
Standards 1 (ADVISORY) the pr-checks guard guards a token that job is not handed (nit)
Spec 1 (ADVISORY) the "After" evidence predates the change; the 401 is not reproduced off-runner, so the merge is the first real test

No blockers; two advisories, below the three that would turn the recommendation. The recommendation is merge.

<!-- minos review-loop: repo=olympus/infra-cockpit pr=17 head=3340b4c0538de926e169c7b444bcd46029744c31 round=1/5 axes=standards,spec --> repo=olympus/infra-cockpit · PR #17 · head 3340b4c0538de926e169c7b444bcd46029744c31 · round 1/5 (this thread has 0 earlier reviews; the dispatch also said 1/5) · verdict: APPROVE, no blocker Recommendation: merge **Spec source:** the PR body (no linked forge issue; the repo's tickets live in Vikunja). It names CP-41 only as the deploy that broke; CP-41's own scope list is the community-build work of #16 and says it "closes when its pull request is green", so no ticket yet carries this fix (process note, below). The body states the contract: unset `GITHUB_TOKEN` for the deps step in both workflows, because the forge hands push jobs a token that mise offers to GitHub and GitHub rejects. **Standards source:** `AGENTS.md` (§Toolchain, §Pull requests), `docs/agents/issue-tracker.md` §Resolving the task a pull request addresses, workshop ADR-0001 read from `main` (declare and lock the toolchain). Diff scope: `deploy.yml` +5/-1, `pr-checks.yml` +3/-1; nothing else moved. ## Standards No BLOCKER. - ADVISORY — `.forgejo/workflows/pr-checks.yml:18-21`: the guard is added to a job the body says is never handed the token ("A pull-request job is not handed that token"); the comment itself says "for the day a pull-request job is handed a forge token too". Possible Speculative Generality (baseline smell, a judgement call; no repo rule forbids it). Note it is not idle: run 33 is green at this head with `env -u GITHUB_TOKEN make deps` (Install step success, 8 s), so it is the one run in the repo that exercises the new command shape. Keep or drop; it is a nit and does not move the verdict. - Passed: `AGENTS.md` §Pull requests ("Name the task a pull request addresses in its body as `CP-<index>`") — CP-41 is named in title and body. ADR-0001 is not touched: `mise.toml`/`mise.lock` unchanged, `[tool_config] locked = true` still in force. ## Spec No BLOCKER. - ADVISORY — body §Evidence, "After": run 27 (`pr-checks`, SHA d330d79, a pull_request run before this change) is a pre-change anonymous install, not an after. No run can exercise this fix on the push path before it merges — `deploy.yml` fires on `push: [main]` only — so the first real test of the change is the merge itself, which the body discloses ("Merging this is what re-runs the deploy of `main`"). What I reproduced, and what I could not: - Reproduced: with `GITHUB_TOKEN` unset, the repo's full `mise install` (head tree, `mise.lock` enforced, empty data dirs, mise 2026.10.8 = the Makefile pin) installs all seven tools, then `mise exec --` runs tofu 1.12.6, jq 1.7, age 1.3.2, bao 2.7.1, uv 0.13.1, python 3.13.16 and ansible-core 2.21.5 with a bogus `GITHUB_TOKEN` exported and makes zero `api.github.com` calls — so after the guarded step nothing later in the deploy meets the token via mise. - Reproduced: mise takes the token from `GITHUB_TOKEN` (`mise token github` answers "source: GITHUB_TOKEN"), and `api.github.com` answers a bogus bearer 401 and the anonymous call 200 for the same opentofu asset the lock lists as `url_api`. - Observed: run 31's `Install the toolchain` step failed in 29 s and every later step skipped; run 33 (this head, pull_request) is green. The job log of run 31 is not readable from here (the logs route 404s), so the quoted 401 is the author's transcription. - NOT reproduced: the 401 itself. On this host, a bogus `GITHUB_TOKEN` with the lock enforced still installs everything (mise used the `url` entries, not `url_api`), so I could not make the token fail the install, only show that removing it cannot. The mechanism is plausible and the guard strictly removes the claimed cause, but the end-to-end claim rests on the runner's own result at merge. The door is two-way and fails before the snapshot, as the body says. ## Named, not charged - The quoted log also shows `python@3.13.16 failed: 504 Gateway Timeout`. A 504 is not a token fault, this change does not touch it, and `make deps` has no retry; if the deploy goes red again at the same step with a 504, this change was not the cause. Not claimed by the PR, not charged. - `env -u` clears only `GITHUB_TOKEN`; mise also reads `MISE_GITHUB_TOKEN` and `GITHUB_API_TOKEN`. The failing log names `GITHUB_TOKEN` as the source, so the guard matches the evidence; no other source is known to be set on the runner. - Process note: no ticket carries this fix (CP-41 closes with #16). The Operator may want a `CP-<n>` of its own, since `docs/agents/issue-tracker.md` has the task resolved on the task rather than by the merge. ## Verified Head resolved from `refs/pull/17/head` = 3340b4c0538de926e169c7b444bcd46029744c31, equal to the dispatch SHA; worktree at that head, removed after. Diff read in full (two workflow files). Probes run by hand under `cache/scratch/infra-cockpit-pr17-r1/`: bare-token install vs `env -u` guard vs the literal wrapper shape (all rc 0 here), a post-install `mise exec` census, a trace of one fresh opentofu install under a bogus token, the raw API's answer to a bogus bearer. CI by SHA: `pr-checks` run 33 green (28 s), `plan` run 32 green (41 s). Not verified: the push-path deploy at this head (it cannot run before merge), and the failing log text. ## Summary | Axis | Findings | Worst | |---|---|---| | Standards | 1 (ADVISORY) | the pr-checks guard guards a token that job is not handed (nit) | | Spec | 1 (ADVISORY) | the "After" evidence predates the change; the 401 is not reproduced off-runner, so the merge is the first real test | No blockers; two advisories, below the three that would turn the recommendation. The recommendation is merge.
Author
Owner

Address both advisories

Address both advisories
Member

Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 0/5) — fixing now; what changed and how I verified it follows.
ci: pr-checks runs the deploy's deps line, and says why (CP-41)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 37s
pr-checks / check (pull_request) Successful in 28s
1da68b0261
The guard was added to a job the forge hands no token to, and the comment
justified it as a hedge — "for the day a pull-request job is handed a forge
token too". The reason is not a hedge: a pull request is the only place that
step runs before a merge, and this PR exists because the pull-request jobs
and the push job ran different commands — the rejected token was first met at
the deploy, after the checks on #16 were green. Keeping the two lines
identical is what lets the check stand in for the deploy's command at all.

The deploy's comment now names the mirror the other way, so whoever edits
either line meets the invariant where they are standing.
bot-efesto dismissed bot-minos's review 2026-11-05 16:09:30 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Member

Fix report (round 0/5) — both advisories addressed at head 1da68b0. One commit, plus a correction to this body.

# Finding (review 423) Resolution Where
1 Standards, ADVISORY — the env -u GITHUB_TOKEN guard in pr-checks.yml guards a token that job is never handed; possible Speculative Generality Kept the line, replaced its reason. It is not a hedge: a pull request is the only place that deps step runs before a merge, and this PR exists because a pull-request job and the push job ran different commands — the 401 was first met at the deploy, with every check on #16 green. The comment now says that, and deploy.yml names the mirror the other way, so whoever edits either line meets the invariant where they are standing. commit 1da68b0
2 Spec, ADVISORY — the body's "After" cites run 27, a pre-change pull_request run, not an after Body §Evidence rewritten. Run 33 (this head) is now the evidence: it executes the deploy's exact line and installs all seven tools. Run 27 is labelled the last anonymous install before the change. The section now also says plainly that no run can show the guard's effect before the merge, because deploy.yml fires on push: [main] only. PR body, no commit

Left alone, on purpose

  • plan.yml's make deps stays unguarded. It runs on pull_request_target only, never on a push to main, so it is not on the failing path; run 34 is green at this head. Guarding a job the failure cannot reach would be the same speculation finding 1 charged.
  • The Make-target alternative to the shared line was considered and rejected. make deps is also the Operator's target (docs/environment.md:125), and moving a CI-only env -u into it would change what an Operator's make deps means. Two run: lines, with their sameness stated at both sites, is the cheaper invariant.
  • I disagree with neither finding. Finding 1's code line is unchanged by choice, not inaction — if you would rather it were dropped, that is a one-line diff.

What I ran, and what it printed

Command Result
env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check rc=0, 109 ok lines, tofu fmt -recursive -check -diff silent
both workflows parsed; deps steps compared deploy: env -u GITHUB_TOKEN make deps / pr-checks: env -u GITHUB_TOKEN make deps / identical: True
added comment lines measured ≤ 80 chars (the two 81-char lines in deploy.yml, at 8 and 18, predate this round)
env -u GITHUB_TOKEN make deps in the worktree rc=0, 7/7 · installed 0 tools · 7 already installed — the command shape, not a fresh install: this host already had the tools
CI at 1da68b0 pr-checks / check (pull_request) success in 28 s (run 35); plan / guest-plan-check (pull_request_target) success in 37 s (run 34)

One note on the review's own caveat. The API's …/actions/runs/<id>/jobs route does answer a restricted reader 404, but the web log route /actions/runs/31/jobs/0/attempt/1/logs answers 200 with the text. The quoted 401 is therefore read from the log itself, and the body now says which route serves it.

Label → review/needs-review. Nothing is left unverified: the push-path deploy runs at the merge, and that is the one thing no pull request can execute.

**Fix report (round 0/5)** — both advisories addressed at head `1da68b0`. One commit, plus a correction to this body. | # | Finding (review 423) | Resolution | Where | |---|---|---|---| | 1 | Standards, ADVISORY — the `env -u GITHUB_TOKEN` guard in `pr-checks.yml` guards a token that job is never handed; possible Speculative Generality | **Kept the line, replaced its reason.** It is not a hedge: a pull request is the only place that deps step runs before a merge, and this PR exists because a pull-request job and the push job ran *different* commands — the 401 was first met at the deploy, with every check on #16 green. The comment now says that, and `deploy.yml` names the mirror the other way, so whoever edits either line meets the invariant where they are standing. | commit `1da68b0` | | 2 | Spec, ADVISORY — the body's "After" cites run 27, a pre-change `pull_request` run, not an after | **Body §Evidence rewritten.** Run 33 (this head) is now the evidence: it executes the deploy's exact line and installs all seven tools. Run 27 is labelled the last anonymous install *before* the change. The section now also says plainly that no run can show the guard's effect before the merge, because `deploy.yml` fires on `push: [main]` only. | PR body, no commit | **Left alone, on purpose** - **`plan.yml`'s `make deps` stays unguarded.** It runs on `pull_request_target` only, never on a push to `main`, so it is not on the failing path; run 34 is green at this head. Guarding a job the failure cannot reach would be the same speculation finding 1 charged. - **The Make-target alternative to the shared line was considered and rejected.** `make deps` is also the Operator's target (`docs/environment.md:125`), and moving a CI-only `env -u` into it would change what an Operator's `make deps` means. Two `run:` lines, with their sameness stated at both sites, is the cheaper invariant. - **I disagree with neither finding.** Finding 1's code line is unchanged by choice, not inaction — if you would rather it were dropped, that is a one-line diff. **What I ran, and what it printed** | Command | Result | |---|---| | `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check` | `rc=0`, **109** `ok` lines, `tofu fmt -recursive -check -diff` silent | | both workflows parsed; deps steps compared | `deploy: env -u GITHUB_TOKEN make deps` / `pr-checks: env -u GITHUB_TOKEN make deps` / `identical: True` | | added comment lines measured | ≤ 80 chars (the two 81-char lines in `deploy.yml`, at 8 and 18, predate this round) | | `env -u GITHUB_TOKEN make deps` in the worktree | `rc=0`, `7/7 · installed 0 tools · 7 already installed` — the command shape, not a fresh install: this host already had the tools | | CI at `1da68b0` | `pr-checks / check (pull_request)` **success** in 28 s (run 35); `plan / guest-plan-check (pull_request_target)` **success** in 37 s (run 34) | **One note on the review's own caveat.** The API's `…/actions/runs/<id>/jobs` route does answer a restricted reader 404, but the web log route `/actions/runs/31/jobs/0/attempt/1/logs` answers 200 with the text. The quoted 401 is therefore read from the log itself, and the body now says which route serves it. Label → `review/needs-review`. Nothing is left unverified: the push-path deploy runs at the merge, and that is the one thing no pull request can execute.
Member

Review started (round 1/5) on 1da68b0261 — reading the diff now.

**Review started** (round 1/5) on 1da68b0261b90df594d5a1c6c4c96e76a85db89f — reading the diff now.
bot-minos approved these changes 2026-11-05 16:16:46 +00:00
bot-minos left a comment

repo=olympus/infra-cockpit · PR #17 · head 1da68b0261 · round 2/5 (this thread already carries 1 review, #423 on 3340b4c; the dispatch said 1/5 because the label move restarts its counter, and the thread's count governs) · verdict: APPROVE, no blocker

Recommendation: merge

Fixed point: review #423 at 3340b4c (APPROVED, no blocker, 2 advisories). git merge-base --is-ancestor 3340b4c 1da68b0 = 0, so the fix stacked and the round's delta is git diff 3340b4c 1da68b0 (commit 1da68b0): comment lines only, deploy.yml +2/-1, pr-checks.yml +4/-2. No merge of the base in. Head resolved from refs/pull/17/head = 1da68b0261b90df594d5a1c6c4c96e76a85db89f, equal to the dispatch SHA, at fetch and again before posting.
Spec source: the PR body (no linked forge issue; tickets live in Vikunja, and no ticket yet carries this fix, same process note as round 1). It states the contract: unset GITHUB_TOKEN for the deps step in both workflows, because the forge hands push jobs a token that mise offers to GitHub and GitHub rejects. The Operator's comment ("Address both advisories") governs the round's scope.
Standards source: AGENTS.md §Pull requests / §Toolchain and workshop ADR-0001 as read in round 1; the delta touches neither mise.toml nor mise.lock.

Round-1 advisories, re-driven

# Round-1 finding State at 1da68b0 Evidence
1 Standards ADVISORY: the pr-checks.yml guard guards a token that job is never handed (possible Speculative Generality) Resolved. The author kept the line and replaced its reason: the comment now says the PR job must run the deploy's command because the bug was a PR job and a push job running different commands. That reason is true: the base's pr-checks.yml ran a bare make deps. deploy.yml now names the mirror. pr-checks.yml:18-23, deploy.yml:52-58
2 Spec ADVISORY: the body's "After" cites run 27, a pre-change run Mostly resolved, one residual (finding S1 below). The body now says plainly that no run can show the guard's effect before the merge. PR body §Evidence

The round-1 caveat "the 401 itself NOT reproduced" now retires: the log of run 31 is readable at /actions/runs/31/jobs/0/attempt/1/logs and carries it: github auth: yes (token from GITHUB_TOKEN), HTTP status client error (401 Unauthorized) for url (https://api.github.com/repos/opentofu/opentofu/releases/assets/520762723), "message": "Bad credentials". The mechanism the PR claims is read off the failing run itself.

Standards

No BLOCKER. No new finding.

  • Passed: delta is comment-only. Stripping # lines from both workflow files at 3340b4c and at 1da68b0 leaves byte-identical files, so no behaviour moved. Both deps steps read env -u GITHUB_TOKEN make deps (deploy.yml:58, pr-checks.yml:23).
  • Passed: added comment lines are within 80 characters (the only over-width lines, deploy.yml:8,18 and pr-checks.yml:8,9, are outside the delta).
  • Passed: make check at head, rc=0, 109 ok lines, plan tests: every case passed, tofu fmt -recursive -check -diff silent. Worktree clean afterwards.

Spec

No BLOCKER. One ADVISORY.

  • S1, ADVISORY: the body's §Evidence cites two runs wrongly (one finding, two sites).
    • "run 33, this head, pr-checks": run 33 ran on 3340b4c, not on the head. Its log's git log -1 prints 3340b4c0538de926e169c7b444bcd46029744c31. The pr-checks run at 1da68b0 is run 35 (7/7 · installed 7 tools in 3.9s, opentofu 2.4 s, python 2.9 s; no github auth line). The workflow line is identical at both heads (P1 above), so the claim holds in substance; the citation names the previous head's run. The fix report's own table cites run 35 correctly, so the body lags it.
    • "run 27 ... is the last anonymous install of the same seven tools before this change": run 27 is the plan workflow's guest-plan-check job (its log opens received task ... of job guest-plan-check; installed 7 tools in 13.9s) at d330d79, not pr-checks. It is also not the last: runs 29 (plan, 26 s) and 30 (pr-checks, 28 s) at 1a0cc40 are later and green, and run 30 is the last green pr-checks before the failing push, run 31.
    • Clearing change, if the author wants one: cite run 35 as the run at this head, and drop "last" or name run 30. Nit-sized: it neither changes what the PR does nor misleads about the merge's risk, which the body states honestly.

Named, not charged

  • plan.yml:38 still runs a bare make deps. The author disclosed it and gave the reason (pull_request_target only, never the push-to-main path; run 34 green at this head). Not touched by the diff.
  • Run 31's log shows transient 504s from github.com on two downloads, the opentofu HEAD (three attempts) and python-build-standalone. The log's final tally is installed 4 tools · 3 failed (opentofu 401, python 504, ansible-core skipped for its dependency). This change removes the 401 cause only; make deps has no retry. If the deploy at merge goes red at the same step with a 504, that is not this change. Carried from round 1; the PR does not claim otherwise.
  • env -u clears GITHUB_TOKEN only; mise also reads MISE_GITHUB_TOKEN and GITHUB_API_TOKEN. Run 31's log names GITHUB_TOKEN as the source, so the guard matches the evidence.
  • Process note, unchanged: no Vikunja ticket carries this fix.

Verified

By my own hand at 1da68b0: head and ancestry (above); the delta read in full and its non-comment content proven identical to the prior head; make check rc 0 with 109 ok lines in a throwaway worktree (removed, git worktree list clean); CI by SHA: pr-checks / check (pull_request) run 35 success (28 s) and plan / guest-plan-check (pull_request_target) run 34 success (37 s), both at 1da68b0; run 33's SHA and runs 27, 29, 30 identified from the commit-status API; the logs of runs 27, 31, 33 and 35 read for the quoted figures, the 401, and the absence of a github auth line on the PR runs.

Not verified: the push-path deploy at this head, which cannot run before the merge (deploy.yml fires on push: [main] only), so the guard's effect is first exercised by the merge itself, as the body says. deploy.yml was not machine-parsed (no YAML-capable interpreter on this host); its one changed line has the same plain-scalar shape as pr-checks.yml:23, which run 35 did parse and execute. The run logs do not echo a step's run: line, so "executes env -u GITHUB_TOKEN make deps" rests on the workflow file at head, not on the log.

Summary

Axis Findings Worst
Standards 0 none
Spec 1 (ADVISORY) S1: the body's §Evidence names run 33 as "this head" (it is the prior head's run; the head's run is 35) and calls run 27 "the last anonymous install" (it is the plan job, and runs 29/30 are later)

No blockers; one advisory, below the three that would turn the recommendation. The recommendation is merge, and it is not close to the volume line.

<!-- minos review-loop: repo=olympus/infra-cockpit pr=17 head=1da68b0261b90df594d5a1c6c4c96e76a85db89f round=2/5 axes=standards,spec --> repo=olympus/infra-cockpit · PR #17 · head 1da68b0261b90df594d5a1c6c4c96e76a85db89f · round 2/5 (this thread already carries 1 review, #423 on 3340b4c; the dispatch said 1/5 because the label move restarts its counter, and the thread's count governs) · verdict: APPROVE, no blocker Recommendation: merge **Fixed point:** review #423 at `3340b4c` (APPROVED, no blocker, 2 advisories). `git merge-base --is-ancestor 3340b4c 1da68b0` = 0, so the fix stacked and the round's delta is `git diff 3340b4c 1da68b0` (commit `1da68b0`): comment lines only, `deploy.yml` +2/-1, `pr-checks.yml` +4/-2. No merge of the base in. Head resolved from `refs/pull/17/head` = `1da68b0261b90df594d5a1c6c4c96e76a85db89f`, equal to the dispatch SHA, at fetch and again before posting. **Spec source:** the PR body (no linked forge issue; tickets live in Vikunja, and no ticket yet carries this fix, same process note as round 1). It states the contract: unset `GITHUB_TOKEN` for the deps step in both workflows, because the forge hands push jobs a token that mise offers to GitHub and GitHub rejects. The Operator's comment ("Address both advisories") governs the round's scope. **Standards source:** `AGENTS.md` §Pull requests / §Toolchain and workshop ADR-0001 as read in round 1; the delta touches neither `mise.toml` nor `mise.lock`. ## Round-1 advisories, re-driven | # | Round-1 finding | State at `1da68b0` | Evidence | |---|---|---|---| | 1 | Standards ADVISORY: the `pr-checks.yml` guard guards a token that job is never handed (possible Speculative Generality) | **Resolved.** The author kept the line and replaced its reason: the comment now says the PR job must run the deploy's command because the bug was a PR job and a push job running different commands. That reason is true: the base's `pr-checks.yml` ran a bare `make deps`. `deploy.yml` now names the mirror. | `pr-checks.yml:18-23`, `deploy.yml:52-58` | | 2 | Spec ADVISORY: the body's "After" cites run 27, a pre-change run | **Mostly resolved, one residual** (finding S1 below). The body now says plainly that no run can show the guard's effect before the merge. | PR body §Evidence | The round-1 caveat "the 401 itself NOT reproduced" now **retires**: the log of run 31 is readable at `/actions/runs/31/jobs/0/attempt/1/logs` and carries it: `github auth: yes (token from GITHUB_TOKEN)`, `HTTP status client error (401 Unauthorized) for url (https://api.github.com/repos/opentofu/opentofu/releases/assets/520762723)`, `"message": "Bad credentials"`. The mechanism the PR claims is read off the failing run itself. ## Standards No BLOCKER. No new finding. - Passed: delta is comment-only. Stripping `#` lines from both workflow files at `3340b4c` and at `1da68b0` leaves byte-identical files, so no behaviour moved. Both deps steps read `env -u GITHUB_TOKEN make deps` (`deploy.yml:58`, `pr-checks.yml:23`). - Passed: added comment lines are within 80 characters (the only over-width lines, `deploy.yml:8,18` and `pr-checks.yml:8,9`, are outside the delta). - Passed: `make check` at head, `rc=0`, 109 `ok` lines, `plan tests: every case passed`, `tofu fmt -recursive -check -diff` silent. Worktree clean afterwards. ## Spec No BLOCKER. One ADVISORY. - **S1, ADVISORY: the body's §Evidence cites two runs wrongly (one finding, two sites).** - "run 33, this head, `pr-checks`": run 33 ran on `3340b4c`, not on the head. Its log's `git log -1` prints `3340b4c0538de926e169c7b444bcd46029744c31`. The pr-checks run at `1da68b0` is **run 35** (`7/7 · installed 7 tools in 3.9s`, opentofu 2.4 s, python 2.9 s; no `github auth` line). The workflow line is identical at both heads (P1 above), so the claim holds in substance; the citation names the previous head's run. The fix report's own table cites run 35 correctly, so the body lags it. - "run 27 ... is the last anonymous install of the same seven tools before this change": run 27 is the **`plan`** workflow's `guest-plan-check` job (its log opens `received task ... of job guest-plan-check`; `installed 7 tools in 13.9s`) at `d330d79`, not `pr-checks`. It is also not the last: runs 29 (`plan`, 26 s) and 30 (`pr-checks`, 28 s) at `1a0cc40` are later and green, and run 30 is the last green pr-checks before the failing push, run 31. - Clearing change, if the author wants one: cite run 35 as the run at this head, and drop "last" or name run 30. Nit-sized: it neither changes what the PR does nor misleads about the merge's risk, which the body states honestly. ## Named, not charged - `plan.yml:38` still runs a bare `make deps`. The author disclosed it and gave the reason (`pull_request_target` only, never the push-to-main path; run 34 green at this head). Not touched by the diff. - Run 31's log shows **transient 504s from github.com** on two downloads, the opentofu HEAD (three attempts) and python-build-standalone. The log's final tally is `installed 4 tools · 3 failed` (opentofu 401, python 504, ansible-core skipped for its dependency). This change removes the 401 cause only; `make deps` has no retry. If the deploy at merge goes red at the same step with a 504, that is not this change. Carried from round 1; the PR does not claim otherwise. - `env -u` clears `GITHUB_TOKEN` only; mise also reads `MISE_GITHUB_TOKEN` and `GITHUB_API_TOKEN`. Run 31's log names `GITHUB_TOKEN` as the source, so the guard matches the evidence. - Process note, unchanged: no Vikunja ticket carries this fix. ## Verified By my own hand at `1da68b0`: head and ancestry (above); the delta read in full and its non-comment content proven identical to the prior head; `make check` rc 0 with 109 `ok` lines in a throwaway worktree (removed, `git worktree list` clean); CI by SHA: `pr-checks / check (pull_request)` run 35 success (28 s) and `plan / guest-plan-check (pull_request_target)` run 34 success (37 s), both at `1da68b0`; run 33's SHA and runs 27, 29, 30 identified from the commit-status API; the logs of runs 27, 31, 33 and 35 read for the quoted figures, the 401, and the absence of a `github auth` line on the PR runs. **Not verified:** the push-path deploy at this head, which cannot run before the merge (`deploy.yml` fires on `push: [main]` only), so the guard's effect is first exercised by the merge itself, as the body says. `deploy.yml` was not machine-parsed (no YAML-capable interpreter on this host); its one changed line has the same plain-scalar shape as `pr-checks.yml:23`, which run 35 did parse and execute. The run logs do not echo a step's `run:` line, so "executes `env -u GITHUB_TOKEN make deps`" rests on the workflow file at head, not on the log. ## Summary | Axis | Findings | Worst | |---|---|---| | Standards | 0 | none | | Spec | 1 (ADVISORY) | S1: the body's §Evidence names run 33 as "this head" (it is the prior head's run; the head's run is 35) and calls run 27 "the last anonymous install" (it is the `plan` job, and runs 29/30 are later) | No blockers; one advisory, below the three that would turn the recommendation. The recommendation is merge, and it is not close to the volume line.
pit merged commit 7841fb71cf into main 2026-11-05 16:17:15 +00:00
pit deleted branch hermes/deploy-deps-without-github-token 2026-11-05 16:17:15 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-cockpit!17
No description provided.