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: add some missing persist-credentials #154

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

cpu
Copy link
Member

@cpu cpu commented Dec 6, 2024

Most of the checkout action usages in ci.yml already specified persist-credentials: false, but a few were missing it. This is flagged when running Zizmor 0.7.0 on the repo's CI config. As mentioned in the description of this finding:

By default, using actions/checkout causes a credential to be persisted in the checked-out repo's .git/config, so that subsequent git operations can be authenticated.

Subsequent steps may accidentally publicly persist .git/config, e.g. by including it in a publicly accessible artifact via actions/upload-artifact.

However, even without this, persisting the credential in the .git/config is non-ideal unless actually needed.

We don't need it, so turn it off consistently :-)

@cpu cpu self-assigned this Dec 6, 2024
@cpu
Copy link
Member Author

cpu commented Dec 6, 2024

CI won't pass until #152 lands.

Copy link
Collaborator

@complexspaces complexspaces left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to go through some CI auditing 👀.

@complexspaces
Copy link
Collaborator

I just reviewed and merged #152, so if you rebase this should be good to go as well.

Most of the checkout action usages in `ci.yml` already specified
`persist-credentials: false`, but a few were missing it. This is
flagged[0] when running Zizmor 0.7.0 on the repo's CI config.

[0]: https://woodruffw.github.io/zizmor/audits/#artipacked
@cpu cpu merged commit 2f24014 into rustls:main Dec 6, 2024
20 checks passed
@cpu cpu deleted the cpu-dr-zizmor branch December 6, 2024 20:22
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.

4 participants