File tree Expand file tree Collapse file tree 5 files changed +44
-7
lines changed Expand file tree Collapse file tree 5 files changed +44
-7
lines changed Original file line number Diff line number Diff line change 7
7
branches : [ "master" ]
8
8
schedule :
9
9
- cron : ' 31 7 * * 3'
10
+ permissions :
11
+ contents : read
10
12
11
13
jobs :
12
14
analyze :
@@ -23,19 +25,24 @@ jobs:
23
25
language : [ 'go' ]
24
26
25
27
steps :
28
+ - name : Harden the runner (Audit all outbound calls)
29
+ uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
30
+ with :
31
+ egress-policy : audit
32
+
26
33
- name : Checkout repository
27
34
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
35
29
- - name : Initialize CodeQL
30
- uses : github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
31
- with :
32
- languages : ${{ matrix.language }}
33
-
34
36
- name : Setup Go
35
37
uses : actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
36
38
with :
37
39
go-version-file : ' go.mod'
38
40
41
+ - name : Initialize CodeQL
42
+ uses : github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
43
+ with :
44
+ languages : ${{ matrix.language }}
45
+
39
46
- name : Build
40
47
run : make build
41
48
Original file line number Diff line number Diff line change 23
23
outputs :
24
24
version : ${{ steps.validate.outputs.version }}
25
25
steps :
26
+ - name : Harden the runner (Audit all outbound calls)
27
+ uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
28
+ with :
29
+ egress-policy : audit
30
+
26
31
- name : Checkout
27
32
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
33
with :
55
60
permissions :
56
61
contents : read
57
62
steps :
63
+ - name : Harden the runner (Audit all outbound calls)
64
+ uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
65
+ with :
66
+ egress-policy : audit
67
+
58
68
- name : Checkout
59
69
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
60
70
81
91
outputs :
82
92
hashes : ${{ steps.hash.outputs.hashes }}
83
93
steps :
94
+ - name : Harden the runner (Audit all outbound calls)
95
+ uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
96
+ with :
97
+ egress-policy : audit
98
+
84
99
- name : Checkout
85
100
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
86
101
with :
Original file line number Diff line number Diff line change 19
19
outputs :
20
20
hashes : ${{ steps.hash.outputs.hashes }}
21
21
steps :
22
+ - name : Harden the runner (Audit all outbound calls)
23
+ uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
24
+ with :
25
+ egress-policy : audit
26
+
22
27
- name : Checkout
23
28
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24
29
with :
Original file line number Diff line number Diff line change 33
33
# actions: read
34
34
35
35
steps :
36
+ - name : Harden the runner (Audit all outbound calls)
37
+ uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
38
+ with :
39
+ egress-policy : audit
40
+
36
41
- name : " Checkout code"
37
42
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38
43
with :
75
80
- name : " Upload to code-scanning"
76
81
uses : github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
77
82
with :
78
- sarif_file : results.sarif
83
+ sarif_file : results.sarif
Original file line number Diff line number Diff line change 14
14
matrix :
15
15
go-version : ['1.24.3']
16
16
steps :
17
+ - name : Harden the runner (Audit all outbound calls)
18
+ uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
19
+ with :
20
+ egress-policy : audit
21
+
17
22
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18
23
19
24
- name : Set up Go
46
51
uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
47
52
with :
48
53
name : coverage-${{ matrix.go-version }}
49
- path : coverage.html
54
+ path : coverage.html
You can’t perform that action at this time.
0 commit comments