Debian Codegraph @

.github/workflows/zizmor.yaml

raw symbols SCIP
1 # Copyright 2026 Chainguard, Inc.
2 # SPDX-License-Identifier: Apache-2.0
3
4 name: Zizmor
5
6 on:
7 pull_request:
8 branches: ['main']
9 paths:
10 - '.github/workflows/**'
11 - '.github/actions/**'
12 - '.github/zizmor.yml'
13 - '.github/dependabot.yml'
14 push:
15 branches: ['main']
16 paths:
17 - '.github/workflows/**'
18 - '.github/actions/**'
19 - '.github/zizmor.yml'
20 - '.github/dependabot.yml'
21
22 permissions: {}
23
24 jobs:
25 zizmor:
26 name: Zizmor
27 runs-on: ubuntu-latest
28 permissions:
29 actions: read # Required by codeql-action/upload-sarif to get workflow run info
30 contents: read # Clone the repository
31 security-events: write # Upload SARIF results to Code Scanning
32 steps:
33 - uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
34 with:
35 egress-policy: block
36 allowed-endpoints: >
37 api.github.com:443
38 github.com:443
39 pkg-containers.githubusercontent.com:443
40 ghcr.io
41
42 - name: Check out code
43 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
44 with:
45 persist-credentials: false
46
47 - name: Run zizmor
48 uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
49 with:
50 persona: pedantic