File tree Expand file tree Collapse file tree 15 files changed +192
-0
lines changed Expand file tree Collapse file tree 15 files changed +192
-0
lines changed Original file line number Diff line number Diff line change 29
29
if : github.event.pull_request.draft == false
30
30
runs-on : ubuntu-24.04
31
31
steps :
32
+ - name : Harden Runner
33
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
34
+ with :
35
+ egress-policy : audit
36
+
32
37
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
33
38
- uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
34
39
id : changes
61
66
PUSH : ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}
62
67
63
68
steps :
69
+ - name : Harden Runner
70
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
71
+ with :
72
+ egress-policy : audit
73
+
64
74
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
65
75
66
76
# Lint the Dockerfile first before setting anything up
@@ -199,6 +209,11 @@ jobs:
199
209
DOCKER_REPO : ghcr.io/${{ github.repository }}
200
210
201
211
steps :
212
+ - name : Harden Runner
213
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
214
+ with :
215
+ egress-policy : audit
216
+
202
217
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
203
218
- name : Set up Docker Buildx
204
219
uses : docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
@@ -240,5 +255,10 @@ jobs:
240
255
platform : [linux/arm64/v8, linux/amd64, linux/arm/v7]
241
256
runs-on : ubuntu-24.04
242
257
steps :
258
+ - name : Harden Runner
259
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
260
+ with :
261
+ egress-policy : audit
262
+
243
263
- run : ' echo "No build required"'
244
264
Original file line number Diff line number Diff line change 43
43
if : github.event.pull_request.draft == false
44
44
runs-on : ubuntu-24.04
45
45
steps :
46
+ - name : Harden Runner
47
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
48
+ with :
49
+ egress-policy : audit
50
+
46
51
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
47
52
- uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
48
53
id : changes
72
77
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
73
78
74
79
steps :
80
+ - name : Harden Runner
81
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
82
+ with :
83
+ egress-policy : audit
84
+
75
85
- name : Checkout repository
76
86
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
77
87
@@ -117,4 +127,9 @@ jobs:
117
127
language : [ 'go', 'javascript' ]
118
128
runs-on : ubuntu-24.04
119
129
steps :
130
+ - name : Harden Runner
131
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
132
+ with :
133
+ egress-policy : audit
134
+
120
135
- run : ' echo "No build required"'
Original file line number Diff line number Diff line change
1
+ # Dependency Review Action
2
+ #
3
+ # This Action will scan dependency manifest files that change as part of a Pull Request,
4
+ # surfacing known-vulnerable versions of the packages declared or updated in the PR.
5
+ # Once installed, if the workflow run is marked as required,
6
+ # PRs introducing known-vulnerable packages will be blocked from merging.
7
+ #
8
+ # Source repository: https://github.com/actions/dependency-review-action
9
+ name : ' Dependency Review'
10
+ on : [pull_request]
11
+
12
+ permissions :
13
+ contents : read
14
+
15
+ jobs :
16
+ dependency-review :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Harden Runner
20
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
21
+ with :
22
+ egress-policy : audit
23
+
24
+ - name : ' Checkout Repository'
25
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
+ - name : ' Dependency Review'
27
+ uses : actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
Original file line number Diff line number Diff line change 19
19
if : github.event.pull_request.draft == false
20
20
runs-on : ubuntu-24.04
21
21
steps :
22
+ - name : Harden Runner
23
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
24
+ with :
25
+ egress-policy : audit
26
+
22
27
- uses : actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
Original file line number Diff line number Diff line change 30
30
if : github.event.pull_request.draft == false
31
31
runs-on : ubuntu-24.04
32
32
steps :
33
+ - name : Harden Runner
34
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
35
+ with :
36
+ egress-policy : audit
37
+
33
38
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
34
39
- uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
35
40
id : changes
47
52
name : Linting
48
53
runs-on : ubuntu-24.04
49
54
steps :
55
+ - name : Harden Runner
56
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
57
+ with :
58
+ egress-policy : audit
59
+
50
60
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
51
61
52
62
# need to setup go toolchain explicitly
66
76
name : Linting
67
77
runs-on : ubuntu-24.04
68
78
steps :
79
+ - name : Harden Runner
80
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
81
+ with :
82
+ egress-policy : audit
83
+
69
84
- run : ' echo "No build required"'
Original file line number Diff line number Diff line change 15
15
name : Validate PR title
16
16
runs-on : ubuntu-24.04
17
17
steps :
18
+ - name : Harden Runner
19
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
20
+ with :
21
+ egress-policy : audit
22
+
18
23
- uses : amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5
19
24
env :
20
25
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-latest
13
13
name : Label the PR size
14
14
steps :
15
+ - name : Harden Runner
16
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
17
+ with :
18
+ egress-policy : audit
19
+
15
20
- uses : codelytv/pr-size-labeler@c7a55a022747628b50f3eb5bf863b9e796b8f274 # v1
16
21
with :
17
22
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 10
10
goreleaser :
11
11
runs-on : ubuntu-24.04
12
12
steps :
13
+ - name : Harden Runner
14
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
15
+ with :
16
+ egress-policy : audit
17
+
13
18
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
14
19
with :
15
20
submodules : true
Original file line number Diff line number Diff line change 19
19
validate :
20
20
runs-on : ubuntu-24.04
21
21
steps :
22
+ - name : Harden Runner
23
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
24
+ with :
25
+ egress-policy : audit
26
+
22
27
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
23
28
- uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
24
29
- run : npx --package renovate -c 'renovate-config-validator'
Original file line number Diff line number Diff line change 19
19
id-token : write
20
20
21
21
steps :
22
+ - name : Harden Runner
23
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2
24
+ with :
25
+ egress-policy : audit
26
+
22
27
- name : ' Checkout code'
23
28
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24
29
with :
You can’t perform that action at this time.
0 commit comments