-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[zizmor] ignore superfluous-actions
#7548
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
Changes from all commits
a49d7e5
211f6e7
b6bc9c5
739a88f
9d71f40
ff15350
15178ce
e843ddc
53381ae
c7d5ec8
b735410
b1ff16b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,7 +52,7 @@ jobs: | |
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 | ||
| - uses: dtolnay/rust-toolchain@stable | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "All rust-toolchain refs in release workflow:"
rg -nP 'uses:\s*dtolnay/rust-toolchain@' .github/workflows/release.yml
echo
echo "Non-SHA refs (should be empty after fix):"
rg -nP 'uses:\s*dtolnay/rust-toolchain@(?![0-9a-f]{40}\b)\S+' .github/workflows/release.ymlRepository: RustPython/RustPython Length of output: 340 Pin Lines 55 and 92 use mutable Suggested changeReplace both occurrences of - - uses: dtolnay/rust-toolchain@stable
+ - uses: dtolnay/rust-toolchain@<commit-sha> # stableDetermine the current commit SHA for the stable tag from the dtolnay/rust-toolchain repository. 🤖 Prompt for AI Agents |
||
| with: | ||
| target: ${{ matrix.target }} | ||
|
|
||
|
|
@@ -89,7 +89,7 @@ jobs: | |
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| targets: wasm32-wasip1 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| rules: | ||
| unpinned-uses: | ||
| config: | ||
| policies: | ||
| # dtolnay/rust-toolchain is a trusted action that uses lightweight branch | ||
| # refs (@stable, @nightly, etc.) by design. Pinning to a hash would break | ||
| # the intended usage pattern. | ||
| # We can remove this once https://github.com/dtolnay/rust-toolchain/issues/180 is resolved | ||
| dtolnay/rust-toolchain: any | ||
| # dtolnay/rust-toolchain handles component installation, target addition, and | ||
| # override configuration beyond what a bare `rustup` invocation provides. | ||
| # See: https://github.com/zizmorcore/zizmor/issues/1817 | ||
| superfluous-actions: | ||
| disable: true |
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.
🧩 Analysis chain
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 2329
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 1512
Pin
dtolnay/rust-toolchainaction references to commit SHAs instead of mutable tags.Lines 53, 172–174, 255, 368, 426–429, 452–454, and 529–531 use mutable refs (
@stableand@master). These can change without notice, compromising CI reproducibility and introducing supply chain risk. Line 426 with@masteris especially problematic. Pin all references to full 40-character commit SHAs with a comment preserving the original tag/intent.Suggested pattern
📝 Committable suggestion
🤖 Prompt for AI Agents