Skip to content

Pin workflow actions to commit SHAs - #1

Merged
thomasnymand merged 1 commit into
mainfrom
pin-actions
Oct 16, 2026
Merged

thomasnymand merged 1 commit into
mainfrom
pin-actions

Conversation

@thomasnymand

Copy link
Copy Markdown
Collaborator

Pins every uses: in the three workflows to a full commit SHA, with the release as a trailing comment:

Action Version SHA
actions/checkout v7.0.1 3d3c42e
actions/setup-java v5.7.0 b6effb0
actions/dependency-review-action v5.0.0 a1d282b
github/codeql-action (init, analyze) v4.39.0 6f2ac81

Each SHA is the commit the previously used major tag pointed to, so behaviour is unchanged. A tag moved upstream can no longer change what CI runs. Dependabot (github-actions ecosystem, already configured) keeps bumping the SHA and the version comment.

Reference each action by full commit SHA with the version as a comment,
so a moved tag cannot change what CI runs. Dependabot keeps updating
both the SHA and the comment.
@thomasnymand
thomasnymand merged commit 5d15e91 into main Oct 16, 2026
4 checks passed
@thomasnymand
thomasnymand deleted the pin-actions branch October 16, 2026 08:40
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