Skip to content

Pin to SHA for actions outside of PyTorch #6573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

zxiiro
Copy link
Collaborator

@zxiiro zxiiro commented Apr 25, 2025

Pin actions from repos external to the PyTorch project to their shasums for security. This is a best practice as Git tags are not immutable.

https://openssf.org/blog/2024/08/12/mitigating-attack-vectors-in-github-workflows/

Copy link

vercel bot commented Apr 25, 2025

@zxiiro is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 25, 2025
@zxiiro
Copy link
Collaborator Author

zxiiro commented Apr 25, 2025

The OIDC test failures are hitting the same issue I identified here pytorch/pytorch#151456 (comment)

I think OIDC rules need to be updated to support PRs from forked repos.

Copy link
Member

@seemethere seemethere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I trust that these SHAs are correct 👍🏽

Pin actions from repos external to the PyTorch project to their shasums
for security. This is a best practice as Git tags are not immutable.

https://openssf.org/blog/2024/08/12/mitigating-attack-vectors-in-github-workflows/

Signed-off-by: Thanh Ha <[email protected]>
@zxiiro zxiiro force-pushed the zxiiro/pin-actions branch from 06a7696 to 78fbb5f Compare April 30, 2025 16:01
@zxiiro
Copy link
Collaborator Author

zxiiro commented Apr 30, 2025

Oh yeah this PR was failing because I pushed to my fork. Let me reopen this from test-infra.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants