Skip to content
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

ci: Do not persist credentials after checkout #7772

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

joeyparrish
Copy link
Member

@joeyparrish joeyparrish commented Dec 18, 2024

See actions/checkout#485 and https://johnstawinski.com/2024/01/11/playing-with-fire-how-we-executed-a-critical-supply-chain-attack-on-pytorch/

In short, it is a terrible idea to persist even our default credentials after checkout. There's no call for that, so we will now set persist-credentials: false on all checkout actions.

The only exceptions are for the release job, which wants to push a tag and create a branch, each of which explicitly persist credentials now and explain why in a comment.

See actions/checkout#485 and
https://johnstawinski.com/2024/01/11/playing-with-fire-how-we-executed-a-critical-supply-chain-attack-on-pytorch/

In short, it is a terrible idea to persist even our default
credentials after checkout.  There's no call for that, so we will now
set `persist-credentials: false` on all checkout actions.

The only exceptions are for the release job, which wants to push a tag and create a branch, each of which explicitly persist credentials now and explains why in a comment.
@joeyparrish joeyparrish force-pushed the no-persist-credentials branch from 5038e10 to e0af0ae Compare December 18, 2024 03:38
@shaka-bot
Copy link
Collaborator

Incremental code coverage: No instrumented code was changed.

@tykus160 tykus160 merged commit 7da1698 into shaka-project:main Dec 18, 2024
18 checks passed
@joeyparrish joeyparrish deleted the no-persist-credentials branch December 18, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants