-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (40 loc) · 1.2 KB
/
zizmor.yaml
File metadata and controls
46 lines (40 loc) · 1.2 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
43
44
45
46
# Copyright 2026 Chainguard, Inc.
# SPDX-License-Identifier: Apache-2.0
name: Zizmor
on:
pull_request:
branches: ['main']
paths:
- '.github/workflows/**'
- '.github/actions/**'
- 'action.yml'
push:
branches: ['main']
paths:
- '.github/workflows/**'
- '.github/actions/**'
- 'action.yml'
permissions: {}
jobs:
zizmor:
name: Zizmor
runs-on: ubuntu-latest
permissions:
actions: read # Required by codeql-action/upload-sarif to get workflow run info
contents: read # Clone the repository
security-events: write # Upload SARIF results to Code Scanning
steps:
- uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
pkg-containers.githubusercontent.com:443
ghcr.io
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run zizmor
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3