Skip to content

Commit 6285125

Browse files
ci(zizmor): Gate + annotations:true, advanced-security:false (kein GHAS auf privat), tote Upload-Step weg (#16)
1 parent c1bb9ce commit 6285125

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

‎.github/workflows/zizmor.yml‎

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ jobs:
3232
persist-credentials: false
3333

3434
- name: Run zizmor
35-
# zizmor exits non-zero when it finds issues. Run as informational
36-
# (continue-on-error) so the job surfaces findings via SARIF/log
37-
# without blocking unrelated CI. Fix findings to clear the warning.
38-
continue-on-error: true
35+
# zizmor exits non-zero bei Findings -> dieser Step GATET die CI (rot = blockt merge).
3936
env:
4037
# [2026-05-23] Provide GH_TOKEN to authenticate zizmor's impostor-
4138
# commit check API calls. Without this, the audit hits unauthenticated
@@ -46,13 +43,8 @@ jobs:
4643
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
4744
with:
4845
persona: regular
46+
# privates Repo ohne GHAS: kein Action-internes Code-Scanning-Upload (wirft sonst
47+
# "Resource not accessible"). Stattdessen Findings als inline-Annotationen.
48+
advanced-security: false
49+
annotations: true
4950

50-
- name: Upload SARIF
51-
# Only run if zizmor actually produced a SARIF, and tolerate the
52-
# upload failing on private repos without GitHub Advanced Security.
53-
if: ${{ !cancelled() && hashFiles('zizmor.sarif') != '' }}
54-
continue-on-error: true
55-
uses: github/codeql-action/upload-sarif@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
56-
with:
57-
sarif_file: zizmor.sarif
58-
category: zizmor

0 commit comments

Comments
 (0)