Skip to content

ci: pin dtolnay/rust-toolchain by commit SHA instead of the moving v1 tag - #199

Open
hyperpolymath wants to merge 1 commit into
mainfrom
claude/pin-rust-toolchain-sha
Open

hyperpolymath wants to merge 1 commit into
mainfrom
claude/pin-rust-toolchain-sha

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

What

Pins dtolnay/rust-toolchain to a commit SHA in the two workflows that use it, and updates actions.lock to match.

File Change
e2e.yml (4 steps), dashboard-check.yml (1 step) dtolnay/rust-toolchain@v1 becomes dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
actions.lock Both workflows' entries name the SHA ref. The now-unused dtolnay/rust-toolchain@v1 dependency entry is removed. The SHA entry was already in the lock, because the standards reusable uses it.

Why

No PR can merge. Since 2026-11-26 the CI and E2E workflows have ended in startup_failure on every pull request: #194, #195, #197 and #198, whatever each PR changes. CI never starts, so the required CI/gate check never reports. main last ran CI on 2026-11-21, when it passed.

Likely cause: the two failing workflows are the only two that use dtolnay/rust-toolchain@v1: e2e.yml directly, and ci.yml through dashboard-check.yml. v1 is a moving tag.

Ref actions.lock says Upstream now (git ls-remote)
dtolnay/rust-toolchain@v1 02cb101e 683b588c
actions/checkout@v7.0.1 3d3c42e5 3d3c42e5
swatinem/rust-cache@v2.9.3 d1527c8f d1527c8f (peeled tag)

This is a hypothesis, not a proof. The run API gives no reason for a startup_failure (the run has 0 jobs), and I could not read the repository's Actions settings. Both commits still exist upstream. 683b588c is dated 2026-10-15, but I can't tell when the tag moved to it. This PR's own CI run is the test: if CI and E2E start and run here, the cause is confirmed. If they still fail to start, the cause is elsewhere, and this PR should be closed or kept only for the pinning.

Why pin by SHA, not just repin the lock: a moving tag can't change what runs. The governance lockfile gate also cites estate canon rule 10: actions must be SHA-pinned, with a version comment.

Validation

Check Result
actionlint 1.7.7 + shellcheck on e2e.yml, dashboard-check.yml, ci.yml No new findings; the one finding in e2e.yml is also on main
Lock workflows: entries vs uses: in both files Match
Every lock workflows: ref has a dependencies: entry Holds
yq parses the lock Yes
bash tests/workflows/ci_gate_test.sh exit 0
Leftover rust-toolchain@v1 refs under .github/ None

Not run: gh actions-lock, which isn't available here, so the lock was edited by hand. Regenerate it if you prefer; a full-directory run would re-add the three workflows deliberately kept out of the lock.

Notes


Generated by Claude Code

… tag

Since 2026-11-26 the CI and E2E workflows have ended in
startup_failure on every pull request (#194, #195, #197, #198),
whatever the PR changes, so the required CI/gate check never reports.
main last ran CI on 2026-11-21, when it passed.

The two failing workflows are the only two that use
dtolnay/rust-toolchain@v1: e2e.yml directly, and ci.yml through
dashboard-check.yml. v1 is a moving tag. git ls-remote shows it at
683b588c, while actions.lock resolved v1 to 02cb101e. The other tag refs
these workflows use (actions/checkout@v7.0.1,
swatinem/rust-cache@v2.9.3) still match their lock entries.

This is a likely cause, not a proven one: the run API gives no
startup_failure reason, and both commits still exist upstream. This PR's
own CI run is the test. If CI and E2E start here, the cause is
confirmed.

Changes:
- e2e.yml (4 steps) and dashboard-check.yml (1 step) use
  dtolnay/rust-toolchain@683b588c... # v1, so a moved tag cannot change
  what runs.
- actions.lock: both workflows' entries name the SHA ref. The now-unused
  'dtolnay/rust-toolchain@v1' dependency entry is removed. The SHA
  entry was already in the lock, because the standards reusable uses
  it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDiMgLS4FnZApYxUk1b
@gitnotebooks

gitnotebooks Bot commented Dec 1, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/januskey/pull/199

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • Updated the Rust toolchain setup used by automated checks to a fixed version. The checks continue to use the stable toolchain; no user-facing changes are included in this update.

The dashboard-check and E2E workflows now use a commit-pinned dtolnay/rust-toolchain reference instead of the floating v1 tag. All steps continue to select the stable toolchain.

Changes: Rust toolchain action pinning

Layer / File(s) Summary
Pin toolchain actions
.github/workflows/dashboard-check.yml, .github/workflows/e2e.yml
The dashboard-check workflow and four E2E workflow steps now reference commit 683b588c487a69d01f6c6ddf40f036ff682cc2c8. Each step continues to select the stable toolchain.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Merge Risk: Minimal · up to b272a · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: the dtolnay/rust-toolchain action is pinned by commit SHA instead of the moving v1 tag. The 'ci:' prefix fits the CI workflow change. The changeset pins the action in…
Description check Passed The description is specific and on-topic. It lists the files changed, explains the reason for pinning by SHA, describes the actions.lock update, and reports validation steps. It matches the workflow p…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: the dtolnay/rust-toolchain action is pinned by commit SHA instead of the moving v1 tag. The 'ci:' prefix fits the CI workflow change. The changeset pins the action in e2e.yml and dashboard-check.yml, which matches the title.

Full details: Description check

Explanation

The description is specific and on-topic. It lists the files changed, explains the reason for pinning by SHA, describes the actions.lock update, and reports validation steps. It matches the workflow pinning changes in the summary and objectives.

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 83e51900-bc61-4f72-97b3-f16edbc10fb1
Commits

Reviewing files that changed from the base of the PR and between d71bb76 and b272a35.

Files ignored due to path filters: 1

  • .github/workflows/actions.lock is excluded by !**/*.lock
Files selected for processing: 2

  • .github/workflows/dashboard-check.yml
  • .github/workflows/e2e.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Recent review details

Context from checks skipped due to timeout: 3

  • GitHub Check: CodeRabbit
  • GitHub Check: codeql-rust / analyze
  • GitHub Check: semgrep-cloud-platform/scan
CI failures not shown inline: 1

GitHub Actions: Governance / governance _ Actions lockfile verify: ci: pin dtolnay/rust-toolchain by commit SHA instead of the moving v1 tag

Conclusion: failure

View job details

##[group]Run set -uo pipefail
 �[36;1mset -uo pipefail�[0m
 �[36;1m# Stage the gate, the verifier and the exemption ledger. When THIS�[0m
 �[36;1m# repository is standards, its own working tree already holds all�[0m
 �[36;1m# three (self-lint); every other caller uses the pinned checkout.�[0m
 �[36;1mif [ "${GITHUB_REPOSITORY_ID:-}" = "1116521501" ] || [ "$GITHUB_REPOSITORY" = hyperpolymath/standards ] || [ "$GITHUB_REPOSITORY" = metadatastician/standards ]; then�[0m
 �[36;1m  SRC=scripts�[0m
 �[36;1m  LEDGERSRC=.machine_readable�[0m
 �[36;1m  echo "Using this repository's own gate + verifier + ledger (standards self-lint)."�[0m
 �[36;1melse�[0m
 �[36;1m  SRC=.standards-lock/scripts�[0m
 �[36;1m  LEDGERSRC=.standards-lock/.machine_readable�[0m
 �[36;1mfi�[0m
 �[36;1mfor f in check-actions-lock-gate.sh update-actions-lock.sh; do�[0m
 �[36;1m  if [ ! -f "$SRC/$f" ]; then�[0m
 �[36;1m    echo "::error::actions-lock gate: $f not found in $SRC (pinned standards checkout failed?)"�[0m
 �[36;1m    exit 1�[0m
 �[36;1m  fi�[0m
 �[36;1m  cp "$SRC/$f" "$RUNNER_TEMP/$f"�[0m
 �[36;1mdone�[0m
 �[36;1m# A MISSING ledger must not silently exempt everyone, nor silently�[0m
 �[36;1m# exempt no one. Stage an empty file and let the gate below print�[0m
 �[36;1m# the denominator it actually read — a skip is not a pass.�[0m
 �[36;1mif [ -f "$LEDGERSRC/lock-allow.txt" ]; then�[0m
 �[36;1m  cp "$LEDGERSRC/lock-allow.txt" "$RUNNER_TEMP/lock-allow.txt"�[0m
 �[36;1melse�[0m
 �[36;1m  echo "::warning::actions-lock exemption ledger not found; treating it as EMPTY (no repo is exempt)."�[0m
 �[36;1m  : > "$RUNNER_TEMP/lock-allow.txt"�[0m
 �[36;1mfi�[0m
 �[36;1mrm -rf .standards-lock�[0m
 �[36;1m�[0m
 �[36;1m# ONE implementation of the lock/pin predicate, not two.�[0m
 �[36;1m#�[0m
 �[36;1m# The gate used to live inside workflow-lint with its own inline copy�[0m
 �[36;1m# of the logic. That copy matched `^[[:space:]]+uses:` — with no�[0m
 �[36;1m# `-?` — so it never saw `- uses: foo@v1`, the co...
Additional context used

GitHub Actions: Governance / governance _ Actions lockfile verify

.github/workflows/dashboard-check.yml

[warning] 1-1: actions-lock advisory: dtolnay/rust-toolchain is pinned to a bare SHA without a symbolic ref, weakening supply-chain traceability. Add a version comment as required by the estate canon, or pin to a tag. The verifier reports this as a warning.

.github/workflows/e2e.yml

[warning] 1-1: actions-lock advisory: dtolnay/rust-toolchain is pinned to a bare SHA without a symbolic ref, weakening supply-chain traceability. Add a version comment as required by the estate canon, or pin to a tag. The verifier reports this as a warning.

zizmor (1.32.0)

.github/workflows/dashboard-check.yml

[info] 82-82: action functionality is already included by the runner (superfluous-actions): use rustup and/or cargo in a script step

(superfluous-actions)

.github/workflows/e2e.yml

[info] 22-22: action functionality is already included by the runner (superfluous-actions): use rustup and/or cargo in a script step

(superfluous-actions)

[info] 42-42: action functionality is already included by the runner (superfluous-actions): use rustup and/or cargo in a script step

(superfluous-actions)

[info] 55-55: action functionality is already included by the runner (superfluous-actions): use rustup and/or cargo in a script step

(superfluous-actions)

[info] 96-96: action functionality is already included by the runner (superfluous-actions): use rustup and/or cargo in a script step

(superfluous-actions)

@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

hyperpolymath commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner Author

Result: the hypothesis behind this PR is disproved. CI and E2E still end in startup_failure on this PR's head (b272a35), with dtolnay/rust-toolchain pinned by SHA. The moving v1 tag is not the cause.

The cause is outside the repo. rust-ci.yml's weekly scheduled run on main uses the same code both times:

Run Outcome
2026-11-23 06:25 UTC success
2026-11-30 06:25 UTC startup_failure

main has not changed since 2026-11-21. The first PR failure was 2026-11-26 03:46 UTC. So something changed between 2026-11-23 06:25 and 2026-11-26 03:46 UTC, most likely an org or repo Actions setting, such as allowed actions or required SHA pinning.

What it would take to confirm: the run API gives no reason for a startup_failure (the run has 0 jobs), and this session cannot read the Actions settings. The reason is shown at the top of the run page, for example https://github.com/hyperpolymath/januskey/actions/runs/46556072563.

I'm leaving this PR open as a draft. The SHA pin is still valid on its own terms (estate canon rule 10), but it does not unblock CI. It's your call whether to keep it or close it.

governance / Actions lockfile verify:

  • The 8 errors are the same as on chore(anchor): drop the stale BoJ trigger fields from ANCHOR.a2ml #198. They fail on every PR: 7 not-pinned and the stale secret-scanner.yml entry.
  • This PR adds 2 warnings. One sha-as-ref warning each for e2e.yml and dashboard-check.yml: "pinned to a bare SHA without a symbolic ref", with the advice "pin to a tag instead". So the lock tool prefers tags, which matches the note in squabble.yml's header and contradicts canon rule 10 as the gate cites it.

Because this PR neither unblocks CI nor satisfies the lock tool, my recommendation is to close it.


Generated by Claude Code

@linear-code
linear-code Bot marked this pull request as ready for review December 1, 2026 06:24
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-01T06:24:21.724162Z
We couldn’t complete this review. Comment @codex review to try again.
b272a35 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants