Pin GitHub Actions to full commit SHAs - #109
Merged
Merged
Conversation
nerrad
marked this pull request as ready for review
August 24, 2026 18:30
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.
Changes proposed in this pull request
actions/checkoutfromv2tov4andactions/setup-pythonfromv2tov5, while keeping both actions pinned to the exact commits for those major-version tags.setup-pythonbecause that version was unavailable on the current GitHub-hosted runner, before dependencies or tests could run.pytestandflake8versions to releases that support Python 3.8–3.12. The oldflake8==3.8.4crashed with currentimportlib-metadataafter the runner setup problem was removed.The WooCommerce organization intends to enforce full-length commit SHA pinning for Actions at the organization level. Landing this change first avoids disrupting this repository when enforcement is enabled. Immutable action revisions reduce the risk that a moved or compromised upstream tag can be used for a CI/CD supply-chain exploit.
How to test
uses:reference ends in a 40-character commit SHA.# v4or# v5).git diff --check.requirements-test.txt, run both workflow flake8 commands, and run the pytest suite.Changelog
No changelog entry is needed because this only hardens and repairs CI configuration and does not change the shipped package.