-
Notifications
You must be signed in to change notification settings - Fork 128
36 lines (33 loc) · 915 Bytes
/
zizmor.yml
File metadata and controls
36 lines (33 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
# Static analysis for GitHub Actions workflows
# https://docs.zizmor.sh/
name: zizmor
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions: {}
jobs:
zizmor:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
# Upload SARIF to Security tab on push to main
- name: Run zizmor (SARIF)
if: github.event_name == 'push'
uses: zizmorcore/zizmor-action@0dce2577a4760a2749d8cfb7a84b7d5585ebcb7d # v0.5.0
# Block PRs with findings
- name: Run zizmor (PR check)
if: github.event_name == 'pull_request'
uses: zizmorcore/zizmor-action@0dce2577a4760a2749d8cfb7a84b7d5585ebcb7d # v0.5.0
with:
advanced-security: false