Skip to content

ci: pin third-party actions to commit SHAs - #13

Merged
devGregA merged 2 commits into
mainfrom
ci/pin-actions
Nov 20, 2026
Merged

devGregA merged 2 commits into
mainfrom
ci/pin-actions

Conversation

@devGregA

Copy link
Copy Markdown
Contributor

Pins every third-party GitHub Action in this repository's workflows and in action.yml to a full commit SHA, with the version kept in a trailing comment (for example actions/checkout@11d5960a… # v4.4.0). Adds a Dependabot configuration for GitHub Actions so the pins are proposed for update when new versions ship.

A tag on an upstream action can be moved to different code; a commit SHA cannot. Pinning means the code our CI and release jobs run only changes when we change it.

No change to what the workflows do.

🤖 Generated with Claude Code

devGregA and others added 2 commits November 18, 2026 20:39
A moved tag on any action the CI or release workflow uses would put
someone else's code into what we ship. Each tag reference is now the
commit the tag points at today, with the most specific version tag that
names the same commit kept as a trailing comment. The root action.yml
pins codeql-action/upload-sarif the same way, so customers who run this
action no longer follow a moving v3 tag.

Resolved with git ls-remote on 2026-11-18, using the dereferenced commit
for annotated tags (cosign-installer, codeql-action). No other change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Weekly, in one grouped PR, so the SHA pins and their version comments
move together. Directory "/" covers .github/workflows and the root
action.yml. Go modules stay out: the repo has no policy for them yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@devGregA
devGregA merged commit a193d6b into main Nov 20, 2026
2 checks passed
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