Repository navigation
60 lines (53 loc) · 1.72 KB
/
Copy pathpr-security.yml
File metadata and controls
60 lines (53 loc) · 1.72 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: pr-security
# Only when a PR touches workflows or dependency manifests. Neither job is
# part of `CI required`; actionlint already gates workflow syntax in ci.yml.
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- '.github/workflows/**'
- '.github/actions/**'
- 'go.mod'
- 'go.sum'
- 'kit/go.mod'
- 'kit/go.sum'
- 'tools/go.mod'
- 'tools/go.sum'
- 'web/package.json'
- 'web/package-lock.json'
concurrency:
group: pr-security-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
jobs:
zizmor:
name: zizmor (workflow audit)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# Step level, so findings show in the log while the job's own check stays green.
- name: Audit workflows
continue-on-error: true
uses: zizmorcore/zizmor-action@1b4550e929643b8b26a62303c6bd64814271a4f1 # v0.9.2
with:
advanced-security: false
dependency-review:
name: Dependency review
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# Fails only on a newly added dependency with a high or critical advisory.
- name: Review dependency changes
uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1
with:
fail-on-severity: high
comment-summary-in-pr: never