forked from ChelseaKR/habitable
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.21 KB
/
Copy pathzizmor.yml
File metadata and controls
42 lines (38 loc) · 1.21 KB
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
37
38
39
40
41
42
# SPDX-License-Identifier: AGPL-3.0-or-later
# Workflow-security scanning (P1-3, CICD-19/20, SEC-04): lints the workflow
# YAML itself for injection risk, over-broad permissions, unpinned actions,
# etc. Blocks on High/Critical findings; results also upload to the Security
# tab (GitHub Advanced Security / code scanning, free for public repos).
name: zizmor
on:
push:
branches: [main]
paths:
- ".github/workflows/**"
pull_request:
paths:
- ".github/workflows/**"
workflow_dispatch:
permissions:
contents: read
# CICD-§11c: cancel superseded runs on the same ref.
concurrency:
group: zizmor-${{ github.ref }}
cancel-in-progress: true
jobs:
zizmor:
name: zizmor workflow security scan
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write # to upload SARIF to the Security tab
actions: read
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run zizmor (blocking on High/Critical)
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
with:
min-severity: high