Skip to content

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

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
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: 2bf67065-5de8-463c-b4c7-5fa045e33774

📥 Commits

Reviewing files that changed from the base of the PR and between c01fdea and f6291e1.

📒 Files selected for processing (11)
  • .github/workflows/boj-build.yml
  • .github/workflows/codeql.yml
  • .github/workflows/dependabot-automerge.yml
  • .github/workflows/dogfood-gate.yml
  • .github/workflows/instant-sync.yml
  • .github/workflows/openssf-compliance.yml
  • .github/workflows/pages.yml
  • .github/workflows/release.yml
  • .github/workflows/repository-validation.yml
  • .github/workflows/rhodibot.yml
  • .github/workflows/static-analysis-gate.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: scan / gitleaks
  • GitHub Check: scan / shell-secrets
  • GitHub Check: governance / Guix packaging policy (Nix retired)
  • GitHub Check: governance / Live Actions policy (credentialed advisory)
  • GitHub Check: governance / Trusted-base reduction policy
  • GitHub Check: governance / Language / package anti-pattern policy
  • GitHub Check: governance / Allowlist Preflight
  • GitHub Check: governance / Debt ratchet
  • GitHub Check: governance / Code quality + docs
  • GitHub Check: governance / Well-Known (RFC 9116 + RSR)
  • GitHub Check: governance / Workflow security linter
  • GitHub Check: governance / Check Workflow Staleness
  • GitHub Check: governance / Exemption ratchet
  • GitHub Check: governance / Actions lockfile verify
  • GitHub Check: scan / rust-secrets
  • GitHub Check: scorecard / Run Scorecard PR
  • GitHub Check: scan / Hypatia Neurosymbolic Analysis
  • GitHub Check: governance / Security policy checks
🧰 Additional context used
🪛 zizmor (1.30.0)
.github/workflows/boj-build.yml

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

(artipacked)

.github/workflows/rhodibot.yml

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

(artipacked)

.github/workflows/codeql.yml

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

(artipacked)

.github/workflows/dogfood-gate.yml

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

(artipacked)


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

(artipacked)


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

(artipacked)


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

(artipacked)


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

(artipacked)

.github/workflows/pages.yml

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

(artipacked)


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

(artipacked)

.github/workflows/release.yml

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

(artipacked)


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

(artipacked)


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

(artipacked)


[info] 132-132: action functionality is already included by the runner (superfluous-actions): use gh release in a script step

(superfluous-actions)

.github/workflows/static-analysis-gate.yml

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

(artipacked)


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

(artipacked)


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

(artipacked)

🔇 Additional comments (7)
.github/workflows/boj-build.yml (1)

25-25: LGTM!

.github/workflows/openssf-compliance.yml (1)

24-24: LGTM!

.github/workflows/repository-validation.yml (1)

17-17: LGTM!

.github/workflows/rhodibot.yml (1)

37-37: LGTM!

.github/workflows/codeql.yml (1)

39-39: LGTM!

Also applies to: 42-42, 47-47

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

58-58: LGTM!

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

24-24: LGTM!


📝 Summary

Summary by CodeRabbit

  • Security
    • Pinned third-party workflow actions to immutable commit references across build, validation, analysis, release, synchronisation and deployment workflows.
    • Added version annotations to maintain clear action-version visibility.
    • Improved protection against unintended changes from mutable action tags without altering workflow behaviour.

Walkthrough

The pull request replaces mutable GitHub Actions version tags with immutable commit SHAs across build, validation, security, Pages, release, and analysis workflows. Version comments remain where provided. Workflow logic is unchanged.

Changes

GitHub Actions workflow pinning

Layer / File(s) Summary
Checkout action pins
.github/workflows/boj-build.yml, .github/workflows/dogfood-gate.yml, .github/workflows/openssf-compliance.yml, .github/workflows/repository-validation.yml, .github/workflows/rhodibot.yml
Checkout references now use the v7.0.1 commit SHA instead of the mutable tag.
Security, dispatch, and Pages action pins
.github/workflows/codeql.yml, .github/workflows/dependabot-automerge.yml, .github/workflows/instant-sync.yml, .github/workflows/pages.yml
CodeQL, Dependabot, repository dispatch, and Pages actions now use pinned commit SHAs with release comments.
Release and analysis action pins
.github/workflows/release.yml, .github/workflows/static-analysis-gate.yml
Release and static-analysis actions now use pinned commit SHAs. Job logic and inputs remain unchanged.

Priority: ⬇️ Low

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

Change: Refactor

Merge Risk: ⚪ Minimal · up to f6291

The workflow changes pin existing action versions without changing workflow behavior or token settings. No actionable merge risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the purpose and scope of the SHA pinning, but it does not follow the required template. It omits the Summary, Changes, RSR Quality Checklist, Testing, and Screenshots sections… Reformat the description using the repository template. Add the required headings, list the workflow changes, mark each applicable checklist item, and document the testing performed or explain why testing was not applicable.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Full details: Description check

Explanation

The description explains the purpose and scope of the SHA pinning, but it does not follow the required template. It omits the Summary, Changes, RSR Quality Checklist, Testing, and Screenshots sections, including test results and checklist status.

🤖 Coding task started


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 steps in time
Tags may move, but SHAs stay
Build and release run the same way
Pages and scans now follow the pin
The burrow files a tidy win

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

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath enabled auto-merge (squash) September 20, 2026 00:18
@coderabbitai

coderabbitai Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Coding task failed

The task could not be completed. Open the task for details or retry.

@hyperpolymath
hyperpolymath merged commit 4e2b860 into main Sep 20, 2026
25 of 26 checks passed
@hyperpolymath
hyperpolymath deleted the fix/sha-pin-actions branch September 20, 2026 00:19
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