Skip to content

Commit 9c8e01d

Browse files
authored
fix(ci): make zizmor SARIF upload configurable (#192)
Adds security-events input (default: false) to the checkout action. Repos opt into SARIF upload by passing security-events: 'true' and adding security-events: write permission to their workflow.
1 parent cb8d9f1 commit 9c8e01d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/actions/checkout/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ inputs:
1010
description: 'Git ref to checkout'
1111
required: false
1212
default: ''
13+
security-events:
14+
description: 'Upload SARIF results to GitHub Code Scanning (requires security-events: write permission)'
15+
required: false
16+
default: 'false'
1317
working-directory:
1418
description: 'Subdirectory to check out into'
1519
required: false
@@ -36,4 +40,5 @@ runs:
3640
if: runner.os != 'Windows'
3741
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
3842
with:
43+
advanced-security: ${{ inputs.security-events }}
3944
min-severity: medium

0 commit comments

Comments
 (0)