Skip to content

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

Draft
hashcatHitman wants to merge 17 commits into
rust-lang:masterfrom
hashcatHitman:zizmor
Draft

hashcatHitman wants to merge 17 commits into
rust-lang:masterfrom
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
  • Fixed in this PR:
    • None
  • Not fixed in this PR:
    • None

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/v6.1.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/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/checkout/releases/tag/v7.0.1

This is technically a downgrade. 7.0.1 is the newest release.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
See: https://github.com/actions/upload-artifact/releases/tag/v4.6.2

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/upload-pages-artifact/releases/tag/v3.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/deploy-pages/releases/tag/v4.0.5

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>
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
This variable is provided by default.

See: https://docs.github.com/en/actions/reference/workflows-and-actions/variables

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
This variable is provided by default.

See: https://docs.github.com/en/actions/reference/workflows-and-actions/variables

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
This variable is provided by default.

See: https://docs.github.com/en/actions/reference/workflows-and-actions/variables

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>
See: https://github.com/actions/deploy-pages#usage

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
See: https://github.com/actions/deploy-pages#usage

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
This is the only permission we were missing.

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

Copy link
Copy Markdown
Member Author

r? crabwatch

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