Skip to content

Commit 5c0c635

Browse files
authored
ci: adjust zizmor advanced security handling (#9)
1 parent 98579ee commit 5c0c635

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/zizmor.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ permissions: {}
1717
jobs:
1818
zizmor:
1919
name: Check GitHub Actions security
20-
if: >-
21-
github.event_name != 'pull_request' ||
22-
github.event.pull_request.head.repo.full_name == github.repository
2320
runs-on: ubuntu-latest
2421
permissions:
2522
security-events: write
@@ -32,4 +29,5 @@ jobs:
3229
- name: Run zizmor
3330
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
3431
with:
35-
advanced-security: true
32+
advanced-security: ${{ github.event_name == 'push' && 'true' || 'false' }}
33+
min-severity: low

0 commit comments

Comments
 (0)