Skip to content

Commit 6155cef

Browse files
committed
ci: Switch from zizmor.yml to inline comments
Rather than recording which zizmor rules are being skipped in a separate config file, inline that configuration into the workflows themselves as comments, to avoid needing to constantly update an extra file as new lines are added or removed from the workflow. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
1 parent 719948c commit 6155cef

3 files changed

Lines changed: 6 additions & 18 deletions

File tree

.github/workflows/build_wheels.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ jobs:
324324
fail-fast: false
325325

326326
container:
327-
image: alpine
327+
image: alpine # zizmor: ignore[unpinned-images]
328328
options: --cap-add=SYS_PTRACE
329329

330330
steps:
@@ -356,7 +356,7 @@ jobs:
356356
fail-fast: false
357357

358358
container:
359-
image: fedora
359+
image: fedora # zizmor: ignore[unpinned-images]
360360
options: --cap-add=SYS_PTRACE
361361

362362
steps:
@@ -394,7 +394,7 @@ jobs:
394394
fail-fast: false
395395

396396
container:
397-
image: archlinux
397+
image: archlinux # zizmor: ignore[unpinned-images]
398398
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined
399399
steps:
400400
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -435,7 +435,7 @@ jobs:
435435
fail-fast: false
436436

437437
container:
438-
image: debian
438+
image: debian # zizmor: ignore[unpinned-images]
439439
options: --cap-add=SYS_PTRACE
440440

441441
steps:

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ jobs:
7171
- name: Upload Python report to Codecov
7272
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6
7373
with:
74-
token: ${{ secrets.CODECOV_TOKEN }}
74+
token: ${{ secrets.CODECOV_TOKEN }} # zizmor: ignore[secrets-outside-env]
7575
files: pycoverage.lcov
7676
flags: python
7777
- name: Upload C++ report to Codecov
7878
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6
7979
with:
80-
token: ${{ secrets.CODECOV_TOKEN }}
80+
token: ${{ secrets.CODECOV_TOKEN }} # zizmor: ignore[secrets-outside-env]
8181
files: cppcoverage.lcov
8282
flags: cpp

zizmor.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)