Skip to content

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

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.

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: ae0a4fdc-a12b-4f3a-aedc-5b5104ded480

📥 Commits

Reviewing files that changed from the base of the PR and between c84c0a0 and e1b8b9a.

📒 Files selected for processing (1)
  • .github/workflows/secret-scanner.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. (31)
  • GitHub Check: governance / Security policy checks
  • GitHub Check: governance / Well-Known (RFC 9116 + RSR)
  • GitHub Check: governance / Guix primary / Nix fallback policy
  • GitHub Check: governance / Licence consistency
  • GitHub Check: governance / Check Workflow Staleness
  • GitHub Check: governance / Workflow security linter
  • GitHub Check: governance / Trusted-base reduction policy
  • GitHub Check: governance / Code quality + docs
  • GitHub Check: governance / Language / package anti-pattern policy
  • GitHub Check: scan / gitleaks
  • GitHub Check: scan / rust-secrets
  • GitHub Check: scan / shell-secrets
  • GitHub Check: trufflehog
  • GitHub Check: scan / Hypatia Neurosymbolic Analysis
  • GitHub Check: TypeScript Type Check
  • GitHub Check: Security Audit
  • GitHub Check: Lint & Format Check
  • GitHub Check: security
  • GitHub Check: Deno Tests (E2E / Property / Aspect)
  • GitHub Check: Docker Build
  • GitHub Check: Validate K9 contracts
  • GitHub Check: RSR Compliance Check
  • GitHub Check: build
  • GitHub Check: Accessibility Tests
  • GitHub Check: Build All Packages
  • GitHub Check: analyze (javascript-typescript, none)
  • GitHub Check: Validate A2ML manifests
  • GitHub Check: Groove manifest check
  • GitHub Check: security
  • GitHub Check: Test Suite
  • GitHub Check: Empty-linter (invisible characters)
🔇 Additional comments (1)
.github/workflows/secret-scanner.yml (1)

25-25: LGTM!


📝 Summary

Summary by CodeRabbit

  • Chores
    • Pinned the secret-scanning workflow to a specific, immutable version for improved reliability and security.

Walkthrough

The secret scanner workflow now pins the TruffleHog action to commit 288a8a8643a2c5a36b81d231c550dccfa0beeb64 instead of the mutable main reference. No other workflow behaviour changes.

Changes

Secret scanner pinning

Layer / File(s) Summary
Pin TruffleHog action
.github/workflows/secret-scanner.yml
The workflow uses a fixed TruffleHog commit SHA instead of main.

Priority: ⬇️ Low

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

Change: Bug fix

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly explains the SHA pinning change, the Actions policy requirement, and the explicit Rust toolchain configuration.
Title check ✅ Passed The title clearly and concisely describes the main change: pinning third-party CI actions to full commit SHAs.
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 the scanner’s trail
A fixed commit guards the rail
No moving branch can shift the way
The secret scan runs as pinned today
Safe hops complete the change

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

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit ec12d5c into main Sep 20, 2026
29 of 39 checks passed
@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