Skip to content

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

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 38 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: 1e50e025-d094-4f0e-ac38-8e814f9547a8

📥 Commits

Reviewing files that changed from the base of the PR and between b4de3eb and c363125.

⛔ Files ignored due to path filters (1)
  • .github/workflows/actions.lock is excluded by !**/*.lock
📒 Files selected for processing (10)
  • .github/workflows/boj-build.yml
  • .github/workflows/casket-pages.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/mirror.yml
  • .github/workflows/push-email-notify.yml
  • .github/workflows/secret-scanner.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: b4739f8e-f1fe-4389-aa19-e4aa7ef568d2

📥 Commits

Reviewing files that changed from the base of the PR and between 1f3fc57 and b4de3eb.

📒 Files selected for processing (15)
  • .github/workflows/boj-build.yml
  • .github/workflows/casket-pages.yml
  • .github/workflows/instant-sync.yml
  • .github/workflows/push-email-notify.yml
  • .github/workflows/secret-scanner.yml
  • fogbinder/.github/workflows/scorecard.yml
  • nesy/.github/workflows/ci.yml
  • nesy/.github/workflows/comprehensive-quality.yml
  • nesy/.github/workflows/rescript-deno-ci.yml
  • rescript-templater/.github/workflows/ci.yml
  • rescript-templater/.github/workflows/comprehensive-quality.yml
  • rescript-templater/.github/workflows/publish.yml
  • rescript-templater/.github/workflows/release.yml
  • voyant-export/.github/workflows/comprehensive-quality.yml
  • zoterho-template/.github/workflows/rescript-deno-ci.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. (13)
  • GitHub Check: governance / Code quality + docs
  • GitHub Check: governance / Trusted-base reduction policy
  • GitHub Check: governance / Licence consistency
  • GitHub Check: governance / Allowlist Preflight
  • GitHub Check: governance / Language / package anti-pattern policy
  • GitHub Check: governance / Security policy checks
  • GitHub Check: governance / Well-Known (RFC 9116 + RSR)
  • GitHub Check: governance / Workflow security linter
  • GitHub Check: governance / Check Workflow Staleness
  • GitHub Check: governance / Guix packaging policy (Nix retired)
  • GitHub Check: hypatia / Hypatia Neurosymbolic Analysis
  • GitHub Check: Analyze (actions)
  • GitHub Check: GitGuardian Security Checks
🧰 Additional context used
📓 Path-based instructions (1)
Or the `.github/workflows/` section in GitInit block

📄 CodeRabbit inference engine (rescript-templater/CLAUDE.md)

Files:

  • rescript-templater/.github/workflows/ci.yml
  • rescript-templater/.github/workflows/publish.yml
  • rescript-templater/.github/workflows/release.yml
  • rescript-templater/.github/workflows/comprehensive-quality.yml
🪛 zizmor (1.30.0)
.github/workflows/boj-build.yml

[warning] 14-15: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)

.github/workflows/casket-pages.yml

[warning] 21-22: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)


[warning] 23-27: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)

.github/workflows/secret-scanner.yml

[warning] 22-24: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)

🔇 Additional comments (13)
fogbinder/.github/workflows/scorecard.yml (1)

26-26: LGTM!

nesy/.github/workflows/comprehensive-quality.yml (1)

36-36: LGTM!

Also applies to: 47-47

rescript-templater/.github/workflows/comprehensive-quality.yml (1)

36-36: LGTM!

Also applies to: 47-47

voyant-export/.github/workflows/comprehensive-quality.yml (1)

36-36: LGTM!

Also applies to: 47-47

nesy/.github/workflows/ci.yml (1)

31-31: LGTM!

Also applies to: 85-85

nesy/.github/workflows/rescript-deno-ci.yml (1)

10-10: LGTM!

Also applies to: 32-32

zoterho-template/.github/workflows/rescript-deno-ci.yml (1)

10-10: LGTM!

Also applies to: 32-32

rescript-templater/.github/workflows/ci.yml (1)

182-182: LGTM!

Also applies to: 285-285, 301-301, 326-326

rescript-templater/.github/workflows/publish.yml (1)

180-180: LGTM!

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

29-29: LGTM!

Also applies to: 34-34, 92-92, 94-94, 107-107

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

19-19: LGTM!

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

20-20: LGTM!

.github/workflows/secret-scanner.yml (1)

26-26: LGTM!


📝 Summary

Summary by CodeRabbit

  • Security
    • Pinned third-party workflow actions to immutable commit references across build, testing, publishing, deployment and security automation.
    • Improved the reproducibility and supply-chain security of automated workflows while preserving existing behaviour.

Walkthrough

The pull request replaces mutable GitHub Actions tags and branches with immutable commit SHAs across repository and nested project workflows. Existing workflow inputs and behaviour remain unchanged.

Changes

Workflow action pinning

Layer / File(s) Summary
Core workflow pinning
.github/workflows/*
Build, pages, synchronisation, email notification, and secret-scanning workflows now use pinned action commits.
Security and quality workflow pinning
fogbinder/.github/workflows/*, nesy/.github/workflows/*, rescript-templater/.github/workflows/comprehensive-quality.yml, voyant-export/.github/workflows/*
Security and quality actions now use pinned commits instead of mutable references.
Project CI action pinning
nesy/.github/workflows/ci.yml, nesy/.github/workflows/rescript-deno-ci.yml, rescript-templater/.github/workflows/ci.yml, zoterho-template/.github/workflows/rescript-deno-ci.yml
CI actions for uploads, Deno, Racket, link checking, and Trivy now use pinned commits.
Release and publish action pinning
rescript-templater/.github/workflows/publish.yml, rescript-templater/.github/workflows/release.yml
Publish and release actions now use pinned commits. Version comments remain on the updated references.

Priority: ⬇️ Low

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

Change: Other

Suggested reviewers: metadatastician

Merge Risk: ⚪ Minimal · up to b4de3

The action pins preserve the selected releases and existing workflow behavior, with no concrete PR-introduced risk remaining.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: pinning third-party GitHub Actions to full commit SHAs.
Description check ✅ Passed The description directly explains the SHA pinning, the Actions policy requirement, the toolchain handling, and the intended scope of the changes.
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 workflow line
And finds each action’s commit sign
Tags rest still, while hashes stay
The build paths hop in place today
Secure steps wear pinned attire

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

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@hyperpolymath
hyperpolymath merged commit 8daf101 into main Sep 20, 2026
16 of 22 checks passed
@hyperpolymath
hyperpolymath deleted the fix/sha-pin-actions branch September 20, 2026 00:09
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.

1 participant