Skip to content

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

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: b9943c2c-93c1-476e-bb1a-63d06b12e850

📥 Commits

Reviewing files that changed from the base of the PR and between 0ccf86c and d5cec5a.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • .github/workflows/ui.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. (3)
  • GitHub Check: Repo hygiene (licence · format · lint · commit)
  • GitHub Check: Julia 1.12.5 / ubuntu-24.04
  • GitHub Check: contracts
🧰 Additional context used
🪛 zizmor (1.30.0)
.github/workflows/ui.yml

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

(artipacked)

.github/workflows/ci.yml

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

(artipacked)


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

(excessive-permissions)


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

(excessive-permissions)


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

(artipacked)


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

(excessive-permissions)

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

25-25: LGTM!

Also applies to: 188-188


📝 Summary

Summary by CodeRabbit

  • Chores
    • Updated automated workflows to use immutable, version-pinned action references.
    • Preserved existing workflow steps, configuration, and Julia version.

Walkthrough

The CI and UI workflows now reference third-party GitHub Actions by full commit SHA. Version comments remain beside each pinned action. Step logic, ordering, and the Julia version remain unchanged.

Changes

Workflow action pinning

Layer / File(s) Summary
CI workflow action pinning
.github/workflows/ci.yml
The CI workflow pins checkout, Bun setup, Julia setup, Julia caching, coverage processing, and artifact upload actions to commit SHAs.
UI workflow action pinning
.github/workflows/ui.yml
The UI workflow pins checkout, Julia setup, and Julia caching actions to commit SHAs. Julia version 1.12.5 is unchanged.

Priority: ⬇️ Low

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

Change: Bug fix

Suggested reviewers: joshuajewell

Merge Risk: ⚪ Minimal · up to d5cec

The build and UI workflows now reference their automation steps by exact commit instead of moving version tags, keeping the same tool versions as before. All referenced commits were confirmed to exist and match the intended versions, so continuous integration and the coverage and artifact steps behave exactly as they did previously. No user-facing behavior changes and no merge-blocking risk was found.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the purpose and intended behaviour change, but it does not follow the repository template. It omits the Base check, Changes, Engineering checklist, and Testing sections, inclu… Add the required template sections. Confirm the base branch, list the key changes, complete the engineering checklist, and provide testing evidence such as the relevant command output.
✅ 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 intended behaviour change, but it does not follow the repository template. It omits the Base check, Changes, Engineering checklist, and Testing sections, including verification results.

  • Fix all pre-merge checks with AI

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 action commits now align
Tags rest beside their version lore
The steps still run as they did before
Hop, hop, secure and clear
Pinned automation brings good cheer

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

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 0655279 into main Sep 20, 2026
3 of 5 checks passed
@hyperpolymath
hyperpolymath deleted the fix/sha-pin-actions branch September 20, 2026 00:48
hyperpolymath added a commit that referenced this pull request Sep 21, 2026
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.
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