Skip to content

Pin GitHub Actions to commit SHAs at their latest releases - #7

Merged
ephemer merged 1 commit into
mainfrom
pin-actions-to-commits
Nov 11, 2026
Merged

ephemer merged 1 commit into
mainfrom
pin-actions-to-commits

Conversation

@ephemer

@ephemer ephemer commented Nov 11, 2026

Copy link
Copy Markdown
Member

Pins every third-party GitHub Action to a full commit SHA, with the release as a trailing comment, and moves each to its newest release that is at least 14 days old.

A tag such as @v4 can be moved by whoever controls the action's repository (or by an attacker who compromises it), and our next run executes the new code with the job's secrets. A commit SHA cannot be moved. In March 2025 tj-actions/changed-files had nearly all its tags repointed to a commit that dumped CI secrets into build logs.

Action Before After Uses
actions/cache v4 v6.1.0 1
actions/checkout v4 v7.0.1 18
actions/download-artifact v4 v8.0.2 1
actions/github-script v7 v9.0.0 1
actions/labeler v4 v4.3.0 1
actions/upload-artifact v4 v7.0.2 16
ilammy/msvc-dev-cmd v1 v1.13.0 3
nttld/setup-ndk v1.3.1 v1.6.0 2
peter-evans/find-comment v3 v4.0.0 1
reviewdog/action-setup v1 v1.5.0 1
softprops/action-gh-release v2 v3.0.3 1

Notes:

  • actions/labeler stays on v4 (pinned to v4.3.0): .github/labeler.yml uses the v4 configuration format, which v5 changed.
  • This is a public fork of thorvg/thorvg, so it diverges from upstream in these files. No Dependabot config is added here.

@ephemer
ephemer merged commit 999babe into main Nov 11, 2026
6 of 15 checks passed
@ephemer
ephemer deleted the pin-actions-to-commits branch November 11, 2026 17: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.

1 participant