fix(security): pin etils-actions/pypi-auto-publish and other Actions to commit SHAs#11213
Open
XananasX7 wants to merge 1 commit into
Open
fix(security): pin etils-actions/pypi-auto-publish and other Actions to commit SHAs#11213XananasX7 wants to merge 1 commit into
XananasX7 wants to merge 1 commit into
Conversation
…to SHAs etils-actions/pypi-auto-publish@v1 is a tag-pinned third-party action in the release workflow with PYPI_PASSWORD secret. A supply-chain attack via tag redirect could backdoor tensorflow-datasets on PyPI.
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
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
The
release.ymlworkflow usesetils-actions/pypi-auto-publish@v1— a mutable tag reference on a third-party action (only ~10 GitHub stars). If thev1tag is silently redirected (compromised maintainer, tag deletion + recreation), malicious code executes in the job holdingPYPI_PASSWORD, enabling a supply-chain attack backdooringtensorflow-datasetson PyPI — a package with millions of downstream users.Additional tag-pinned first-party actions (
actions/checkout@v3,actions/setup-python@v4,styfle/cancel-workflow-action@0.7.0) in CI and release workflows also pinned to commit SHAs.Follows the GitHub security hardening guide.