1818 - name : Harden the runner (Audit all outbound calls)
1919 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
2020 with :
21- egress-policy : audit
21+ egress-policy : block
22+ allowed-endpoints : >
23+ endoflife.date:443
2224 - id : set-matrix
2325 run : echo "version_matrix=$(curl https://endoflife.date/api/oracle-jdk.json | jq -c '[.[] | select(.extendedSupport > (now | strftime("%Y-%m-%d"))) | .cycle]' | sed 's/ //g')" >> $GITHUB_OUTPUT
2426 - name : verify-matrix
@@ -34,10 +36,21 @@ jobs:
3436 java_version : ${{ fromJson(needs.build-jvm-matrix.outputs.version_matrix) }}
3537 runs-on : ${{ matrix.os }}
3638 steps :
37- - name : Harden the runner (Audit all outbound calls)
39+ - name : Harden Runner
3840 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
3941 with :
40- egress-policy : audit
42+ egress-policy : block
43+ allowed-endpoints : >
44+ api.azul.com:443
45+ cdn.azul.com:443
46+ dl.google.com:443
47+ github.com:443
48+ plugins-artifacts.gradle.org:443
49+ plugins.gradle.org:443
50+ release-assets.githubusercontent.com:443
51+ repo.maven.apache.org:443
52+ scans-in.gradle.com:443
53+ services.gradle.org:443
4154 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4255 - name : configure windows pagefile
4356 if : ${{ matrix.os == 'windows-latest' }}
@@ -89,10 +102,21 @@ jobs:
89102 build :
90103 runs-on : ubuntu-latest
91104 steps :
92- - name : Harden the runner (Audit all outbound calls)
105+ - name : Harden Runner
93106 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
94107 with :
95- egress-policy : audit
108+ egress-policy : block
109+ allowed-endpoints : >
110+ api.azul.com:443
111+ cdn.azul.com:443
112+ dl.google.com:443
113+ github.com:443
114+ plugins-artifacts.gradle.org:443
115+ plugins.gradle.org:443
116+ release-assets.githubusercontent.com:443
117+ repo.maven.apache.org:443
118+ scans-in.gradle.com:443
119+ services.gradle.org:443
96120 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
97121 - name : set up JDK
98122 uses : actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
@@ -130,11 +154,24 @@ jobs:
130154 check_bashisms :
131155 runs-on : ubuntu-latest
132156 steps :
133- - name : Harden the runner (Audit all outbound calls)
157+ - name : Harden Runner
134158 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
135159 with :
136- egress-policy : audit
137-
160+ egress-policy : block
161+ allowed-endpoints : >
162+ api.azul.com:443
163+ azure.archive.ubuntu.com:80
164+ cdn.azul.com:443
165+ dl.google.com:443
166+ esm.ubuntu.com:443
167+ github.com:443
168+ packages.microsoft.com:443
169+ plugins-artifacts.gradle.org:443
170+ plugins.gradle.org:443
171+ release-assets.githubusercontent.com:443
172+ repo.maven.apache.org:443
173+ scans-in.gradle.com:443
174+ services.gradle.org:443
138175 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
139176 - name : set up JDK 11
140177 uses : actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
@@ -160,10 +197,21 @@ jobs:
160197 os : [ubuntu-latest, windows-latest]
161198 runs-on : ${{ matrix.os }}
162199 steps :
163- - name : Harden the runner (Audit all outbound calls)
200+ - name : Harden Runner
164201 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
165202 with :
166- egress-policy : audit
203+ egress-policy : block
204+ allowed-endpoints : >
205+ api.azul.com:443
206+ cdn.azul.com:443
207+ dl.google.com:443
208+ github.com:443
209+ plugins-artifacts.gradle.org:443
210+ plugins.gradle.org:443
211+ release-assets.githubusercontent.com:443
212+ repo.maven.apache.org:443
213+ scans-in.gradle.com:443
214+ services.gradle.org:443
167215 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
168216 - name : set up JDK 21
169217 uses : actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
@@ -183,10 +231,22 @@ jobs:
183231 name : Test Release Pipeline
184232 runs-on : ubuntu-latest
185233 steps :
186- - name : Harden the runner (Audit all outbound calls)
234+ - name : Harden Runner
187235 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
188236 with :
189- egress-policy : audit
237+ egress-policy : block
238+ allowed-endpoints : >
239+ api.azul.com:443
240+ api.github.com:443
241+ cdn.azul.com:443
242+ dl.google.com:443
243+ github.com:443
244+ plugins-artifacts.gradle.org:443
245+ plugins.gradle.org:443
246+ release-assets.githubusercontent.com:443
247+ repo.maven.apache.org:443
248+ scans-in.gradle.com:443
249+ services.gradle.org:443
190250 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
191251 - name : Base Release Environment Setup
192252 uses : ./.github/actions/base-release
0 commit comments