ci: pin GitHub Actions to full commit SHAs to prevent supply-chain attacks#3611
Open
XananasX7 wants to merge 1 commit into
Open
ci: pin GitHub Actions to full commit SHAs to prevent supply-chain attacks#3611XananasX7 wants to merge 1 commit into
XananasX7 wants to merge 1 commit into
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.
Summary
14 workflow files reference
actions/checkoutpinned to mutable version tags (@v6,@v4) rather than immutable commit SHAs. Tags can be silently moved by an upstream attacker, allowing arbitrary code execution in CI/CD with access to repository secrets (includingTFLM_BOT_REPO_TOKENandPYPI_API_KEY).Vulnerability class
Supply-chain attack via mutable Action tag references (CWE-829).
Affected actions
actions/checkout@v6@df4cb1c069e1874edd31b4311f1884172cec0e10actions/checkout@v4@34e114876b0b11c390a56381ad16ebd13914f8d5Affected files (14 total)
check_tflite_files.yml,generate_integration_tests.yml,log_binary_size_pr.yml,pypi_build.yml,suite_cortex_m.yml,suite_hexagon.yml,suite_riscv.yml,suite_xtensa.yml,sync.yml,test_bazel.yml,test_hosted.yml,test_makefile.yml,test_misc.yml,test_windows.ymlFix
All
actions/checkoutreferences are pinned to their full immutable commit SHA with the version tag as an inline comment.