Skip to content

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

Merged
hyperpolymath merged 2 commits into
mainfrom
fix/sha-pin-actions
Sep 20, 2026
Merged

hyperpolymath merged 2 commits 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.

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

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: 69e335fb-1afa-4051-a540-eb3225fdbc43

📥 Commits

Reviewing files that changed from the base of the PR and between 7702d67 and e8985ac.

📒 Files selected for processing (7)
  • .github/workflows/casket-pages.yml
  • .github/workflows/ci.yml
  • .github/workflows/dependabot-automerge.yml
  • .github/workflows/instant-sync.yml
  • .github/workflows/language-policy.yml
  • .github/workflows/publish-image.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. (21)
  • GitHub Check: scan / rust-secrets
  • GitHub Check: scan / gitleaks
  • GitHub Check: scan / shell-secrets
  • GitHub Check: governance / Licence consistency
  • GitHub Check: governance / Security policy checks
  • GitHub Check: governance / Live Actions policy (credentialed advisory)
  • GitHub Check: governance / Exemption ratchet
  • GitHub Check: governance / Debt ratchet
  • GitHub Check: governance / Actions lockfile verify
  • GitHub Check: governance / Guix packaging policy (Nix retired)
  • GitHub Check: governance / Trusted-base reduction policy
  • GitHub Check: governance / Code quality + docs
  • GitHub Check: governance / Well-Known (RFC 9116 + RSR)
  • GitHub Check: governance / Allowlist Preflight
  • GitHub Check: governance / Language / package anti-pattern policy
  • GitHub Check: governance / Check Workflow Staleness
  • GitHub Check: governance / Workflow security linter
  • GitHub Check: scan / Hypatia Neurosymbolic Analysis
  • GitHub Check: GitGuardian Security Checks
  • GitHub Check: Analyze (rust)
  • GitHub Check: Analyze (actions)
🧰 Additional context used
🪛 zizmor (1.30.0)
.github/workflows/workflow-linter.yml

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

(artipacked)

.github/workflows/ci.yml

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

(artipacked)


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

(artipacked)


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

(artipacked)


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

(artipacked)

.github/workflows/language-policy.yml

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

(artipacked)

.github/workflows/publish-image.yml

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

(artipacked)

.github/workflows/casket-pages.yml

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

(artipacked)


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

(artipacked)

🔇 Additional comments (7)
.github/workflows/ci.yml (1)

23-23: LGTM!

Also applies to: 25-25, 30-30, 53-53, 55-55, 84-84, 96-96, 98-98, 107-107

.github/workflows/language-policy.yml (1)

23-23: LGTM!

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

18-18: LGTM!

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

25-25: LGTM!

Also applies to: 27-27, 32-32, 37-37, 78-78, 80-80, 93-93

.github/workflows/publish-image.yml (1)

39-39: LGTM!

Also applies to: 41-41, 43-43, 50-50, 61-61, 71-71

.github/workflows/dependabot-automerge.yml (1)

58-58: LGTM!

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

30-30: LGTM!


📝 Summary

Summary by CodeRabbit

  • Security
    • CI/CD workflows now use immutable, verified commit references for third-party automation actions, improving build and deployment reproducibility.
    • Existing workflow steps, permissions, triggers, and deployment behaviour remain unchanged.

Walkthrough

All GitHub Actions references in seven workflows now use immutable commit SHAs. Original release tags remain as comments. Workflow structure, inputs, commands, triggers, and control flow are unchanged.

Changes

Workflow action pinning

Layer / File(s) Summary
CI and validation action pins
.github/workflows/ci.yml, .github/workflows/language-policy.yml, .github/workflows/workflow-linter.yml
CI, language policy, and workflow linting actions now reference commit SHAs. Previous version tags remain in comments.
Publishing workflow action pins
.github/workflows/casket-pages.yml, .github/workflows/publish-image.yml
GitHub Pages and container publishing actions now reference commit SHAs. Publishing inputs and provenance attestation behaviour are unchanged.
Automation workflow action pins
.github/workflows/dependabot-automerge.yml, .github/workflows/instant-sync.yml
Dependabot metadata and repository dispatch actions now reference commit SHAs. Their existing step inputs and control flow are unchanged.

Priority: ⬇️ Low

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

Change: Bug fix

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarises the main change: pinning third-party CI actions to full commit SHAs.
Description check ✅ Passed The description directly explains the SHA pinning, the Actions policy requirement, the startup failure it prevents, and the explicit Rust toolchain input. It is fully related to the changeset.
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 reads each line,
The patch grows clear beneath the moon,
Small changes hop in place,
Tests guard the garden path,
Reviews bloom before the dawn.

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

@hyperpolymath
hyperpolymath merged commit 2f6183c into main Sep 20, 2026
@hyperpolymath
hyperpolymath deleted the fix/sha-pin-actions branch September 20, 2026 00:54
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