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: disable persist-credentials, remove release-plz #52

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

cpu
Copy link
Member

@cpu cpu commented Dec 6, 2024

Disable persist-credentials in test.yml

Adds persist-credentials: false in test.yml's use of the checkouts action. Zizmor 0.7.0 flags its absence in this repo. 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 :-)

Remove release-plz workflow

We've traditionally favoured manual releases in the Rustls org, and there are several Zizmor findings with the existing release-plz.yaml config. Rather than fix them, let's remove the workflow for now and get on the trusted publishers train when the upstream Rust RFC (rust-lang/rfcs#3691) stabilizes.

Resolves #51

cpu added 2 commits December 6, 2024 15:05
We already do this in most of the other Rustls crates, and Zizmor 0.7.0
flags[0] its absence in this repo.

[0]: https://woodruffw.github.io/zizmor/audits/#artipacked
We've traditionally favoured manual releases in the Rustls org, and
there are several Zizmor findings with the existing `release-plz.yaml`
config. Rather than fix them, let's remove the workflow for now and get
on the trusted publishers train when the upstream Rust RFC stabilizes.
@cpu cpu self-assigned this Dec 6, 2024
Copy link
Collaborator

@fasterthanlime fasterthanlime left a comment

Choose a reason for hiding this comment

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

👍

@cpu cpu added this pull request to the merge queue Dec 6, 2024
Merged via the queue into rustls:main with commit 5096642 Dec 6, 2024
1 check passed
@cpu cpu deleted the cpu-dr-zizmor branch December 6, 2024 21:05
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.

Zizmor findings, release-pls considerations?
3 participants