Skip to content

Commit 4141e74

Browse files
authored
Add zizmor CI (RustPython#7463)
1 parent 2ef77f8 commit 4141e74

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,12 @@ jobs:
141141

142142
- name: Install dependencies
143143
uses: ./.github/actions/install-linux-deps
144-
with: ${{ matrix.dependencies || fromJSON('{}') }}
144+
# zizmor has an issue with dynamic `with`
145+
# with: ${{ matrix.dependencies || fromJSON('{}') }}
146+
with:
147+
gcc-multilib: ${{ matrix.dependencies.gcc-multilib || false }}
148+
musl-tools: ${{ matrix.dependencies.musl-tools || false }}
149+
gcc-aarch64-linux-gnu: ${{ matrix.dependencies.gcc-aarch64-linux-gnu || false }}
145150

146151
- uses: dtolnay/rust-toolchain@stable
147152
with:
@@ -514,3 +519,15 @@ jobs:
514519
- run: cargo binstall --no-confirm cargo-shear
515520

516521
- run: cargo shear
522+
523+
security-lint:
524+
runs-on: ubuntu-latest
525+
permissions:
526+
security-events: write
527+
steps:
528+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
529+
with:
530+
persist-credentials: false
531+
532+
- name: Run zizmor
533+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2

0 commit comments

Comments
 (0)