Skip to content

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

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

hashcatHitman wants to merge 11 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:
    • 2 instances of artipacked (auditor also flags explicitly persisted credentials, which were required to keep these workflows functional. they might be removable in the future, but for now, this is just how it is.)

See: https://github.com/actions/checkout/releases/tag/v7.0.1

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/v7.1.0

This is the same version we were already implicitly using.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
See: https://github.com/crate-ci/typos/releases/tag/v1.50.3

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>
It exists, but not where `zizmor` expects.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Comment thread .github/workflows/publish-crates-io.yml Resolved
Comment on lines +61 to +62
with:
persist-credentials: true # The `publish-guide.sh` script requires this for `git push`

@hashcatHitman hashcatHitman Nov 4, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I want to get rid of this eventually. I'm pretty sure we wouldn't need it if we migrated to using actions/deploy-pages, which I do think should be done, but I don't currently have the time to figure that out.

View changes since the review

Comment on lines +19 to +20
with:
persist-credentials: true # The `update-dependencies.sh` script requires this for `git push`

@hashcatHitman hashcatHitman Nov 4, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't like this either, but as long as this repo needs that script, it is necessary. We (t-crabwatch/t-infra) should probably try to figure out what behavior is desired and if we can help configure Renovate to provide that behavior.

View changes since the review

@hashcatHitman

Copy link
Copy Markdown
Member Author

CI failure is from cargo audit, not my changes. This is mostly ready, but see the review comments I left. I would like to at least try to deal with the # TODO comment I made, but I'm not sure how to investigate without trying to actually publish crates to crates.io.

@hashcatHitman

Copy link
Copy Markdown
Member Author

r? crabwatch

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
@hashcatHitman
hashcatHitman marked this pull request as ready for review November 4, 2026 18:03
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Nov 4, 2026
@hashcatHitman hashcatHitman moved this from zizmor PR opened to zizmor PR in review in t-crabwatch policy expansion Nov 4, 2026

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

S-waiting-on-review Status: waiting on a review

Projects

Status: zizmor PR in review

Development

Successfully merging this pull request may close these issues.

3 participants