Skip to content

fix(ci): pin third-party actions to full commit SHAs - #97

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/sha-pin-actions
Sep 20, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
fix/sha-pin-actions

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

fix(ci): pin third-party actions to full commit SHAs

The account's Actions policy requires a full-length SHA ref. A tag or branch ref is refused at
startup — startup_failure, no jobs, "this workflow graph cannot be shown" — so these workflows
could not run at all. This resolves each ref to the commit it currently points at and records the
ref in a trailing comment, e.g. actions/checkout@<sha> # v4.

dtolnay/rust-toolchain takes its toolchain from the ref itself, so those steps also gained an
explicit with: toolchain: input; without it, a SHA ref would silently lose the channel.

No behaviour is intended to change beyond the pins.

@coderabbitai

coderabbitai Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

Warning

Review limit reached

Next included review available in 36 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 1a3a5efa-ae26-4e4e-98f8-c31df9d6334c

📥 Commits

Reviewing files that changed from the base of the PR and between 2000497 and 3e2981f.

📒 Files selected for processing (17)
  • .github/workflows/boj-build.yml
  • .github/workflows/casket-pages.yml
  • .github/workflows/codeql.yml
  • .github/workflows/dogfood-gate.yml
  • .github/workflows/generator-generic-ossf-slsa3-publish.yml
  • .github/workflows/governance.yml
  • .github/workflows/hypatia-scan.yml
  • .github/workflows/instant-sync.yml
  • .github/workflows/label-triage.yml
  • .github/workflows/labels.yml
  • .github/workflows/main-estate-audit.yml
  • .github/workflows/mirror.yml
  • .github/workflows/pages.yml
  • .github/workflows/push-email-notify.yml
  • .github/workflows/scorecard.yml
  • .github/workflows/secret-scanner.yml
  • .github/workflows/workflow-linter.yml

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 54013a3e-7842-4f53-bff0-ff6812c801e8

📥 Commits

Reviewing files that changed from the base of the PR and between 5ec565c and 2000497.

📒 Files selected for processing (10)
  • .github/workflows/boj-build.yml
  • .github/workflows/casket-pages.yml
  • .github/workflows/codeql.yml
  • .github/workflows/dogfood-gate.yml
  • .github/workflows/generator-generic-ossf-slsa3-publish.yml
  • .github/workflows/instant-sync.yml
  • .github/workflows/main-estate-audit.yml
  • .github/workflows/pages.yml
  • .github/workflows/push-email-notify.yml
  • .github/workflows/workflow-linter.yml

Included review availability: 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. (19)
  • GitHub Check: governance / Code quality + docs
  • GitHub Check: governance / Exemption ratchet
  • GitHub Check: governance / Actions lockfile verify
  • GitHub Check: governance / Language / package anti-pattern policy
  • GitHub Check: governance / Debt ratchet
  • GitHub Check: governance / Licence consistency
  • GitHub Check: governance / Trusted-base reduction policy
  • GitHub Check: governance / Security policy checks
  • GitHub Check: governance / Live Actions policy (credentialed advisory)
  • GitHub Check: governance / Guix packaging policy (Nix retired)
  • GitHub Check: governance / Allowlist Preflight
  • GitHub Check: governance / Workflow security linter
  • GitHub Check: governance / Well-Known (RFC 9116 + RSR)
  • GitHub Check: governance / Check Workflow Staleness
  • GitHub Check: scan / Hypatia Neurosymbolic Analysis
  • GitHub Check: scan / rust-secrets
  • GitHub Check: scan / gitleaks
  • GitHub Check: scan / shell-secrets
  • GitHub Check: GitGuardian Security Checks
🔇 Additional comments (10)
.github/workflows/boj-build.yml (1)

14-14: LGTM!

.github/workflows/casket-pages.yml (1)

26-26: LGTM!

Also applies to: 29-29, 35-35, 41-41, 103-103, 106-106, 119-119

.github/workflows/codeql.yml (1)

40-40: LGTM!

Also applies to: 43-43, 49-49

.github/workflows/dogfood-gate.yml (1)

31-31: LGTM!

Also applies to: 71-71, 116-116, 208-208, 268-268

.github/workflows/generator-generic-ossf-slsa3-publish.yml (1)

33-33: LGTM!

.github/workflows/instant-sync.yml (1)

22-22: LGTM!

.github/workflows/main-estate-audit.yml (1)

17-17: LGTM!

Also applies to: 20-20, 23-23, 26-26, 29-29, 32-32, 35-35, 38-38, 41-41, 44-44, 47-47, 50-50, 53-53, 56-56, 59-59, 62-62, 65-65, 68-68, 71-71, 74-74, 77-77, 80-80, 83-83, 86-86, 89-89, 92-92, 95-95

.github/workflows/pages.yml (1)

25-25: LGTM!

Also applies to: 27-27, 44-44, 57-57

.github/workflows/push-email-notify.yml (1)

43-43: LGTM!

.github/workflows/workflow-linter.yml (1)

23-23: LGTM!


📝 Summary

Summary by CodeRabbit

  • Chores
    • Pinned automated workflow actions to immutable commit references instead of mutable version tags.
    • Improved the reproducibility and supply-chain security of builds, audits, deployments, notifications, and code analysis.
    • No user-facing workflow behaviour or processing steps changed.

Walkthrough

The pull request replaces mutable GitHub Actions tags and branch references with pinned commit SHAs across ten workflows. Existing version annotations, inputs, step names, and execution order remain unchanged.

Changes

GitHub Actions pinning

Layer / File(s) Summary
Pin workflow actions to commit SHAs
.github/workflows/*.yml
Checkout and third-party actions now use immutable commit SHAs. Version comments remain where provided. Workflow logic and action inputs are unchanged.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • hyperpolymath/anamnesis#83: Changes action references in the same workflows and addresses the opposing tag-versus-commit pinning behaviour.

Suggested reviewers: metadatastician

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: pinning third-party CI actions to full commit SHAs.
Description check ✅ Passed The description directly explains the SHA pinning changes, the Actions policy requirement, the startup failure resolved, and the explicit toolchain inputs for rust-toolchain steps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.

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

A rabbit checks each action’s trail
And pins it firm where tags might fail
The workflow hops in steady flight
With version notes kept clear and bright
No steps are changed, no paths astray
Just trusted commits guard the way

Comment @coderabbitai help to get the list of available commands.

…0.1.6)

`actions.lock` is authoritative: the workflows carry readable refs and the lock records the
commit each ref resolves to, which is what actually runs. Refs that stop matching the manifest
make the whole repository unstartable — `startup_failure`, "Invalid lockfile".

Regenerated with the official extension (`github/gh-actions-lock`). The hand-pinned SHA refs are
reverted to their readable form here precisely because the lockfile, not the workflow, is what
pins them.
@sonarqubecloud

Copy link
Copy Markdown

@@ -1,3 +1,4 @@
# This workflow is managed by gh actions-lock.
@hyperpolymath
hyperpolymath merged commit 02685bb into main Sep 20, 2026
26 of 33 checks passed
@hyperpolymath
hyperpolymath deleted the fix/sha-pin-actions branch September 20, 2026 00:11
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