Skip to content

Commit 72e26c9

Browse files
shaanmajidj178
andauthored
ci: add zizmor security scanning workflow (#58)
Add workflow for scanning GitHub Actions with zizmor, matching the pattern used in the prek repository. Although zizmor already exists as a prek/pre-commit hook, this is useful for evaluating all contributions (regardless of individual contributor setup) and uploading security reports. --------- Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
1 parent a9f71de commit 72e26c9

2 files changed

Lines changed: 28 additions & 6 deletions

File tree

.github/workflows/zizmor.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run zizmor
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: ['**']
8+
9+
permissions: {}
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
zizmor:
17+
name: Run zizmor
18+
runs-on: ubuntu-latest
19+
permissions:
20+
security-events: write # Upload SARIF results to GitHub Security tab
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
with:
25+
persist-credentials: false
26+
27+
- name: Run zizmor
28+
uses: zizmorcore/zizmor-action@135698455da5c3b3e55f73f4419e481ab68cdd95 # v0.4.1

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,3 @@ repos:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- id: check-yaml
8-
9-
- repo: https://github.com/zizmorcore/zizmor-pre-commit
10-
rev: v1.22.0
11-
hooks:
12-
- id: zizmor
13-
args: ["--no-progress", "--persona=auditor"]

0 commit comments

Comments
 (0)