Skip to content

Pin GitHub Actions to commit SHAs for supply-chain hardening - #45

Merged
BrentIO merged 1 commit into
mainfrom
issue-44-actions-sha-pinning
Jul 11, 2026
Merged

BrentIO merged 1 commit into
mainfrom
issue-44-actions-sha-pinning

Conversation

@BrentIO

@BrentIO BrentIO commented Jul 11, 2026

Copy link
Copy Markdown
Owner

What's wrong

compile-check.yaml and release.yaml referenced third-party actions by mutable tag, and arduino/setup-arduino-cli@v2 is actually a branch named v2, not a tag. compile-check.yaml runs on any pull_request (no branch filter), so an upstream tag/branch getting repointed is a real supply-chain vector.

What this does

Pins all 4 third-party uses: references to full commit SHAs, keeping the original tag/branch as a trailing comment (Dependabot, added in #42, can now propose bumps).

No behavior change — same versions, just pinned.

After merge

Enable sha_pinning_required on the repo's Actions settings.

How to verify

Open a PR touching any file to trigger compile-check.yaml, confirm it passes.

Fixes #44

compile-check.yaml runs on any pull_request (no branch filter), so
an upstream tag/branch getting repointed is a real supply-chain
vector. Pin every third-party uses: reference to a full commit SHA,
keeping the original tag/branch as a trailing comment.
arduino/setup-arduino-cli@v2 is actually a branch, not a tag.

Fixes #44
@BrentIO
BrentIO merged commit a7bf4a6 into main Jul 11, 2026
1 check passed
@BrentIO
BrentIO deleted the issue-44-actions-sha-pinning branch July 11, 2026 13:25
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.

Pin GitHub Actions to commit SHAs for supply-chain hardening

1 participant