-
Notifications
You must be signed in to change notification settings - Fork 1.9k
chore(ci): address lint findings in release workflow #15167
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: William Woodruff <[email protected]>
Oh hm. I guess I need to update |
cc @Gankra |
@@ -15,8 +15,7 @@ | |||
# title/body based on your changelogs. | |||
|
|||
name: Release | |||
permissions: | |||
"contents": "write" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iirc those are actually used, we're pushing a tag and creating a release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iirc those are actually used, we're pushing a tag and creating a release
Oh hmm, I thought each job had its permissions explicitly set already but I see I missed announce
. I'll fix this.
The cargo-dist workflow is generated from https://github.com/astral-sh/cargo-dist/blob/622170f09a1521bc0782332317076e4805737cef/cargo-dist/templates/ci/github/release.yml.j2, where we can update it. |
Ah, this looks like it's architecturally non-trivial to fix: looks like This makes sense as a constraint there, but it also means that I can't remediate these directly. I'm inclined to WONTFIX them for now, since handling secret inheritance with full generality in cargo-dist seems complicated 🙂 |
Summary
This should be the last of the main linting changes; with this, there will be no more non-pedantic zizmor findings.
Test Plan
See what happens in CI. I'll also and manually dispatch a dry-run.