Skip to content

Commit 77d284b

Browse files
authored
ci: adjust zizmor advanced security handling (#1666)
1 parent e1025bc commit 77d284b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/zizmor.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ permissions: {}
1616
jobs:
1717
zizmor:
1818
name: Check GitHub Actions security
19-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
2019
runs-on: ubuntu-latest
2120
permissions:
2221
contents: read
22+
security-events: write
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -28,7 +28,5 @@ jobs:
2828
- name: Run zizmor
2929
uses: zizmorcore/zizmor-action@a16621b09c6db4281f81a93cb393b05dcd7b7165 # v0.5.5
3030
with:
31-
# Using false as a code scanning ruleset would block the release
32-
# workflow which creates a new commit and pushes directly to main.
33-
advanced-security: false
34-
min-severity: medium
31+
advanced-security: ${{ github.event_name == 'push' && 'true' || 'false' }}
32+
min-severity: low

0 commit comments

Comments
 (0)