Skip to content

ci: Resolve most zizmor findings as of zizmor@1.32.0 - #3544

Draft
hashcatHitman wants to merge 21 commits into
rust-lang:mainfrom
hashcatHitman:zizmor
Draft

hashcatHitman wants to merge 21 commits into
rust-lang:mainfrom
hashcatHitman:zizmor

Conversation

@hashcatHitman

Copy link
Copy Markdown
Member

In pursuit of getting more zizmor lints enforced across rust-lang repos through crabwatch, this PR fixes most zizmor findings as of zizmor@1.32.0, using the auditor persona. The lints that actually fired per-persona level are:

regular persona findings:

pedantic persona findings:

auditor persona findings:

  • Everything from pedantic
  • Not fixed in this PR:
    • None

This repo is a special case in my quest due to the use of cargo-dist. I will have to revisit it before I can actually change the policy to enforce any of this. See: rust-lang/crabwatch#145. So for the purposes of this PR, any lint that has been solved everywhere except in .github/workflows/release.yml is considered "solved" for now. See the other branch where I added ignore comments to all the issues flagged in that workflow: hashcatHitman/rust-bindgen@zizmor-ignore-cargo-dist

Also, I don't know when you last used it, but in my experience, .github/workflows/bump-version.yml just doesn't work unless you upgrade to a newer version of taiki-e/install-action. I just used the newest v2 version. But I didn't keep that update as part of this PR; that's for you to decide you want to do separately.

The hash pin format is supported by tools like Dependabot and Renovate, which can update the pinned hashes and their associated comments. If you'd like help setting either of those up, let me know which you prefer, and if you'd like it in this PR or a new one. By default, I'd assume to set it up to only update GitHub Actions.

See: https://github.com/actions/checkout/releases/tag/v4.4.0

This is the same version we're already implicitly using.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
See: https://github.com/actions/setup-node/releases/tag/v4.4.0

This is the same version we're already implicitly using.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
See: https://github.com/JamesIves/github-pages-deploy-action/releases/tag/3.7.1

This is the same version we're already using.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
See: https://github.com/mathieudutour/github-tag-action/releases/tag/v6.2

This is the same version we're already using.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
See: https://github.com/peter-evans/create-pull-request/releases/tag/v5.0.3

This is the same version we're already implicitly using.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
See: https://github.com/taiki-e/install-action/releases/tag/v1.17.3

This is the same version we're already implicitly using.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
See: https://github.com/chainguard-dev/actions/releases/tag/v1.7.2

Instead of directly tracking the main development branch, this uses the
newest actual release, which is only 4 days old. At the time of writing,
this just so happens to *also* be the *exact* commit `main` points to,
so this is "the same version we're already using".

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
@hashcatHitman

Copy link
Copy Markdown
Member Author

r? crabwatch

@hashcatHitman

Copy link
Copy Markdown
Member Author

I'm seeing the same CI failures on other PRs, so I'm pretty sure those aren't my doing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: zizmor PR opened

Development

Successfully merging this pull request may close these issues.

2 participants