Skip to content

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

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
Contributor

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: 3ced95bf-0020-447f-9978-8ba9a05a209a

📥 Commits

Reviewing files that changed from the base of the PR and between bad20fb and b19c005.

📒 Files selected for processing (7)
  • .github/workflows/cflite_batch.yml
  • .github/workflows/cflite_pr.yml
  • .github/workflows/codeql.yml
  • .github/workflows/push-email-notify.yml
  • frontier-practices/.github/workflows/rescript-deno-ci.yml
  • playground/hives/me/.github/workflows/ci.yml
  • playground/hives/me/.github/workflows/rust-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. (19)
  • GitHub Check: governance / Licence consistency
  • GitHub Check: governance / Debt ratchet
  • GitHub Check: governance / Well-Known (RFC 9116 + RSR)
  • GitHub Check: governance / Workflow security linter
  • GitHub Check: governance / Trusted-base reduction policy
  • GitHub Check: governance / Actions lockfile verify
  • GitHub Check: scan / gitleaks
  • GitHub Check: governance / Allowlist Preflight
  • GitHub Check: scan / shell-secrets
  • GitHub Check: governance / Code quality + docs
  • GitHub Check: governance / Security policy checks
  • GitHub Check: governance / Language / package anti-pattern policy
  • GitHub Check: scan / rust-secrets
  • GitHub Check: governance / Guix packaging policy (Nix retired)
  • GitHub Check: governance / Exemption ratchet
  • GitHub Check: governance / Check Workflow Staleness
  • GitHub Check: governance / Live Actions policy (credentialed advisory)
  • GitHub Check: spark-theatre-gate / SPARK Theatre Gate
  • GitHub Check: GitGuardian Security Checks
🔇 Additional comments (7)
.github/workflows/cflite_batch.yml (1)

33-33: LGTM!

.github/workflows/cflite_pr.yml (1)

36-36: LGTM!

.github/workflows/codeql.yml (1)

39-39: LGTM!

Also applies to: 44-44

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

44-44: LGTM!

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

13-13: LGTM!

Also applies to: 35-35

playground/hives/me/.github/workflows/ci.yml (1)

19-19: LGTM!

Also applies to: 24-24, 34-34, 41-41, 46-46, 56-56, 61-61

playground/hives/me/.github/workflows/rust-ci.yml (1)

15-15: LGTM!

Also applies to: 17-17, 50-50


📝 Summary

Summary by CodeRabbit

  • Security
    • CI and security workflows now use immutable commit references for third-party actions, improving build reproducibility and reducing exposure to mutable tag changes.
    • Existing workflow conditions, commands, toolchain settings, and validation behaviour remain unchanged.

Walkthrough

The pull request replaces mutable GitHub Actions version tags with immutable commit SHAs across seven workflow files. Existing workflow commands, inputs, guards, and validation behaviour remain unchanged.

Changes

Workflow action pinning

Layer / File(s) Summary
CodeQL action pins
.github/workflows/cflite_batch.yml, .github/workflows/cflite_pr.yml, .github/workflows/codeql.yml
CodeQL actions now use the v4.38.0 commit SHA.
Notification and Deno action pins
.github/workflows/push-email-notify.yml, frontier-practices/.github/workflows/rescript-deno-ci.yml
The notification and Deno actions now use commit SHAs.
Rust workflow action pins
playground/hives/me/.github/workflows/ci.yml, playground/hives/me/.github/workflows/rust-ci.yml
Rust toolchain, Cargo, and Codecov actions now use commit SHAs. The test job retains an explicit stable toolchain setting.

Priority: ➖ Normal

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to b19c0

The action pins preserve the workflows’ intended behavior, with no actionable merge risk identified.

🚥 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 GitHub Actions to full commit SHAs.
Description check ✅ Passed The description directly explains the Actions policy requirement, the workflow startup failure, the SHA pinning changes, and the explicit Rust toolchain inputs.
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
Fixed commits keep the actions in time
CodeQL hops, Deno runs
Rust builds under steady suns
Tags rest while SHAs shine ✨

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

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