File tree 4 files changed +38
-10
lines changed
4 files changed +38
-10
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,21 @@ name: Testing For PRs
5
5
6
6
on : [ pull_request ]
7
7
8
+ permissions :
9
+ contents : read
10
+
8
11
jobs :
9
12
test :
10
13
runs-on : ubuntu-latest
11
14
steps :
12
- - uses : actions/checkout@v4
15
+ - name : Harden the runner (Audit all outbound calls)
16
+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
17
+ with :
18
+ egress-policy : audit
19
+
20
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13
21
- name : Set up JDK
14
- uses : actions/setup-java@v4
22
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
15
23
with :
16
24
java-version : 17
17
25
distribution : temurin
Original file line number Diff line number Diff line change @@ -22,11 +22,16 @@ jobs:
22
22
GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
23
23
PRERELEASE : " ${{ github.event.inputs.prerelease }}"
24
24
steps :
25
- - uses : actions/checkout@v4
25
+ - name : Harden the runner (Audit all outbound calls)
26
+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
27
+ with :
28
+ egress-policy : audit
29
+
30
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
31
with :
27
32
fetch-depth : 0
28
33
- name : Set up JDK
29
- uses : actions/setup-java@v4
34
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
30
35
with :
31
36
java-version : 17
32
37
distribution : temurin
Original file line number Diff line number Diff line change 11
11
test :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v4
14
+ - name : Harden the runner (Audit all outbound calls)
15
+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
16
+ with :
17
+ egress-policy : audit
18
+
19
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15
20
- name : Set up JDK
16
- uses : actions/setup-java@v4
21
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
17
22
with :
18
23
java-version : 17
19
24
distribution : temurin
@@ -26,11 +31,16 @@ jobs:
26
31
GITHUB_USER : " gocd"
27
32
GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
28
33
steps :
29
- - uses : actions/checkout@v4
34
+ - name : Harden the runner (Audit all outbound calls)
35
+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
36
+ with :
37
+ egress-policy : audit
38
+
39
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30
40
with :
31
41
fetch-depth : 0
32
42
- name : Set up JDK
33
- uses : actions/setup-java@v4
43
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
34
44
with :
35
45
java-version : 17
36
46
distribution : temurin
Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
- - uses : actions/checkout@v4
13
+ - name : Harden the runner (Audit all outbound calls)
14
+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
15
+ with :
16
+ egress-policy : audit
17
+
18
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14
19
15
20
- name : Update Gradle Wrapper
16
- uses : gradle-update/update-gradle-wrapper-action@v2
21
+ uses : gradle-update/update-gradle-wrapper-action@512b1875f3b6270828abfe77b247d5895a2da1e5 # v2.1.0
17
22
with :
18
23
labels : dependencies
You can’t perform that action at this time.
0 commit comments