Skip to content

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

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/sha-pin-actions
Sep 19, 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: ebdf4319-0a89-4690-bec5-8117a4d18ea4

📥 Commits

Reviewing files that changed from the base of the PR and between 0095817 and 8ab6824.

📒 Files selected for processing (5)
  • .github/workflows/ada-ci.yml
  • .github/workflows/dogfood-gate.yml
  • .github/workflows/openssf-compliance.yml
  • .github/workflows/static-analysis-gate.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. (1)
  • GitHub Check: scan / Hypatia Neurosymbolic Analysis
🧰 Additional context used
🪛 zizmor (1.30.0)
.github/workflows/workflow-linter.yml

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

(artipacked)

.github/workflows/ada-ci.yml

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

(artipacked)


[warning] 4-254: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)


[warning] 30-76: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)


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

(artipacked)


[warning] 79-105: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)


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

(artipacked)


[warning] 108-137: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)


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

(artipacked)


[warning] 140-184: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)


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

(artipacked)


[warning] 187-228: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)

.github/workflows/dogfood-gate.yml

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

(artipacked)


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

(artipacked)


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

(artipacked)


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

(artipacked)


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

(artipacked)


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

(artipacked)

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

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

(artipacked)


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

(artipacked)


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

(artipacked)

🔇 Additional comments (5)
.github/workflows/ada-ci.yml (1)

38-38: LGTM!

Also applies to: 71-71, 88-91, 116-116, 134-134, 148-148, 195-195

.github/workflows/dogfood-gate.yml (1)

33-33: LGTM!

Also applies to: 78-78, 128-128, 193-193, 258-258, 310-310

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

24-24: LGTM!

.github/workflows/static-analysis-gate.yml (1)

26-26: LGTM!

Also applies to: 123-123, 150-150, 156-156, 257-257, 276-276, 338-338, 360-360, 365-365, 370-370, 430-430

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

31-31: LGTM!


📝 Summary

Summary by CodeRabbit

  • Chores
    • Pinned GitHub Actions workflow dependencies to immutable commit references.
    • Added version labels to pinned actions for easier identification.
    • Preserved existing workflow triggers, checks, steps, and behaviour.

Walkthrough

The pull request replaces mutable GitHub Actions version tags with immutable commit SHAs in five workflow files. Each reference retains a trailing semantic-version comment. Workflow logic and triggers remain unchanged.

Changes

GitHub Actions workflow pinning

Layer / File(s) Summary
Ada CI action references
.github/workflows/ada-ci.yml
The Ada/SPARK workflow pins checkout, upload-artifact, and download-artifact actions to commit SHAs.
Validation workflow action references
.github/workflows/dogfood-gate.yml, .github/workflows/openssf-compliance.yml
The dogfood and OpenSSF workflows pin checkout actions to commit SHAs.
Analysis and linter action references
.github/workflows/static-analysis-gate.yml, .github/workflows/workflow-linter.yml
The workflows pin checkout, upload-artifact, download-artifact, and setup-beam actions to commit SHAs.

Priority: ⬇️ Low

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

Change: Bug fix

Possibly related PRs

  • hyperpolymath/trigger#4: Changes GitHub Actions references in the same workflow files through actions.lock and versioned tags.
🚥 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 CI actions to full commit SHAs.
Description check ✅ Passed The description directly explains the SHA pinning, the policy requirement, the Rust toolchain update, and the intended lack of behaviour 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 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.

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit ea72950 into main Sep 19, 2026
5 checks passed
@hyperpolymath
hyperpolymath deleted the fix/sha-pin-actions branch September 19, 2026 23: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