Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pin GitHub Actions to commit SHAs
GitHub Actions referenced by tag (e.g.
actions/checkout@v4) use a mutable pointer — the tag owner can move it to a different commit at any time, including a malicious one. This is the attack vector used in the tj-actions/changed-files incident (CVE-2025-30066).Pinning to a full 40-character commit SHA makes the reference immutable. The
# tagcomment preserves human readability so reviewers can tell which version is pinned.Important: a SHA can also originate from a forked repository. A malicious actor can fork an action, push a compromised commit to the fork, and the SHA will resolve — but it won't exist in the upstream canonical repo. Each SHA in this PR was verified against the action's canonical repository (not a fork).
Changes
actions/checkout@master->actions/checkout@61b9e3751b92087fd0b06925ba6dd6314e06f089 # masteractions/setup-python@v1->actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1.2.4pypa/gh-action-pypi-publish@release/v1->pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1actions/checkout@v2->actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0actions/setup-python@v2->actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4Files modified
.github/workflows/main.yml.github/workflows/test.ymlSecurity warnings