Skip to content

Pin every action to a full commit SHA - #25

Merged
pacmano1 merged 1 commit into
mainfrom
pin-actions
Oct 25, 2026
Merged

pacmano1 merged 1 commit into
mainfrom
pin-actions

Conversation

@pacmano1

Copy link
Copy Markdown
Contributor

Every action in build.yml and release.yml was referenced by a tag its owner can move, which is how the tj-actions/changed-files compromise (March 2025) spread. Each is now pinned to a commit, with its version in a comment.

The versions are the newest releases at least 14 days old, the same set the other Diridium plugins pin, proven first in diridium-com/oie-ssh-tunnel-manager#19:

Action Was Now Released
actions/checkout v4 v7.0.1, 3d3c42e5aac5ba805825da76410c181273ba90b1 2026-07-20
actions/setup-java v4 v6.0.1, de7274f081f381c8f8158605e0321c36c376e2e6 2026-09-09
actions/cache v4 v6.1.0, 55cc8345863c7cc4c66a329aec7e433d2d1c52a9 2026-06-26
softprops/action-gh-release v2 v2.6.2, 3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 2026-04-12

softprops/action-gh-release stays on v2 because the next change to release.yml removes it.

The v4 actions run on Node 20, which GitHub has deprecated. Every run warned that they were being forced onto Node 24 and that setup-java v4 gets no more updates. The new versions run on Node 24.

Checked: each SHA is the commit its tag points to (gh api repos/<action>/commits/<tag>), and both workflows parse. build.yml runs on this PR. release.yml runs only on a tag, so its new pins first run when the release workflow is next tested.

Co-authored with Claude Code.

Every action in build.yml and release.yml was referenced by a tag its
owner can move, which is how the tj-actions/changed-files compromise
(March 2025) spread. Each is now pinned to a commit, with its version in
a comment. The versions are the newest releases at least 14 days old,
the same set the other Diridium plugins pin (proven first in
diridium-com/oie-ssh-tunnel-manager#19):

- actions/checkout v7.0.1 (2026-07-20), was v4
- actions/setup-java v6.0.1 (2026-09-09), was v4
- actions/cache v6.1.0 (2026-06-26), was v4
- softprops/action-gh-release v2.6.2 (2026-04-12), was v2. It stays on
  v2 because the next change to release.yml removes it.

The v4 actions run on Node 20, which GitHub has deprecated. Every run
warned that they were being forced onto Node 24 and that setup-java v4
gets no more updates. The new versions run on Node 24.

Checked: each SHA is the commit its tag points to, and both workflows
parse. release.yml runs only on a tag, so its new pins first run when
the release workflow is next tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pacmano1
pacmano1 merged commit b3e19d7 into main Oct 25, 2026
6 checks passed
@pacmano1
pacmano1 deleted the pin-actions branch October 25, 2026 17:29
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