46
46
# Running with HANA requires at least 8GB memory just for the database, which we don't have on GH Actions runners
47
47
# - rdbms: hana
48
48
steps :
49
- - uses : actions/checkout@v4
49
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50
50
with :
51
51
persist-credentials : false
52
52
- name : Reclaim Disk Space
56
56
RDBMS : ${{ matrix.rdbms }}
57
57
run : ci/database-start.sh
58
58
- name : Set up Java 17
59
- uses : actions/setup-java@v4
59
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
60
60
with :
61
61
distribution : ' temurin'
62
62
java-version : ' 17'
73
73
echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT
74
74
- name : Cache Maven/Gradle Dependency/Dist Caches
75
75
id : cache-maven
76
- uses : actions/cache@v4
76
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
77
77
# if it's not a pull request, we restore and save the cache
78
78
if : github.event_name != 'pull_request'
79
79
with :
90
90
${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
91
91
${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
92
92
- name : Restore Maven/Gradle Dependency/Dist Caches
93
- uses : actions/cache/restore@v4
93
+ uses : actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
94
94
# if it a pull request, we restore the cache but we don't save it
95
95
if : github.event_name == 'pull_request'
96
96
with :
@@ -118,14 +118,14 @@ jobs:
118
118
# The actual publishing must be done in a separate job (see ci-report.yml).
119
119
# We don't write to the remote cache as that would be unsafe.
120
120
- name : Upload GitHub Actions artifact for the Develocity build scan
121
- uses : actions/upload-artifact@v4
121
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
122
122
if : " ${{ github.event_name == 'pull_request' && !cancelled() }}"
123
123
with :
124
124
name : build-scan-data-${{ matrix.rdbms }}
125
125
path : ~/.gradle/build-scan-data
126
126
127
127
- name : Upload test reports (if Gradle failed)
128
- uses : actions/upload-artifact@v4
128
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
129
129
if : failure()
130
130
with :
131
131
name : test-reports-java11-${{ matrix.rdbms }}
@@ -151,7 +151,7 @@ jobs:
151
151
- rdbms : oracle_db21c
152
152
- rdbms : oracle_db23c
153
153
steps :
154
- - uses : actions/checkout@v4
154
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
155
155
with :
156
156
persist-credentials : false
157
157
- name : Reclaim disk space and sanitize user home
@@ -162,7 +162,7 @@ jobs:
162
162
RUNID : ${{ github.run_number }}
163
163
run : ci/database-start.sh
164
164
- name : Set up Java 21
165
- uses : graalvm/setup-graalvm@v1
165
+ uses : graalvm/setup-graalvm@aafbedb8d382ed0ca6167d3a051415f20c859274 # v1.2.8
166
166
with :
167
167
distribution : ' graalvm'
168
168
java-version : ' 21'
@@ -179,7 +179,7 @@ jobs:
179
179
echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT
180
180
- name : Cache Maven/Gradle Dependency/Dist Caches
181
181
id : cache-maven
182
- uses : actions/cache@v4
182
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
183
183
# if it's not a pull request, we restore and save the cache
184
184
if : github.event_name != 'pull_request'
185
185
with :
@@ -196,7 +196,7 @@ jobs:
196
196
${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
197
197
${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
198
198
- name : Restore Maven/Gradle Dependency/Dist Caches
199
- uses : actions/cache/restore@v4
199
+ uses : actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
200
200
# if it a pull request, we restore the cache but we don't save it
201
201
if : github.event_name == 'pull_request'
202
202
with :
@@ -226,13 +226,13 @@ jobs:
226
226
# We don't write to the remote cache as that would be unsafe.
227
227
# That's even on push, because we do not trust Atlas runners to hold secrets: they are shared infrastructure.
228
228
- name : Upload GitHub Actions artifact for the Develocity build scan
229
- uses : actions/upload-artifact@v4
229
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
230
230
if : " ${{ !cancelled() }}"
231
231
with :
232
232
name : build-scan-data-${{ matrix.rdbms }}
233
233
path : ~/.gradle/build-scan-data
234
234
- name : Upload test reports (if Gradle failed)
235
- uses : actions/upload-artifact@v4
235
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
236
236
if : failure()
237
237
with :
238
238
name : test-reports-java11-${{ matrix.rdbms }}
@@ -248,13 +248,13 @@ jobs:
248
248
name : Static code analysis
249
249
runs-on : ubuntu-latest
250
250
steps :
251
- - uses : actions/checkout@v4
251
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
252
252
with :
253
253
persist-credentials : false
254
254
- name : Reclaim disk space and sanitize user home
255
255
run : .github/ci-prerequisites-atlas.sh
256
256
- name : Set up Java 17
257
- uses : actions/setup-java@v4
257
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
258
258
with :
259
259
distribution : ' temurin'
260
260
java-version : ' 17'
@@ -271,7 +271,7 @@ jobs:
271
271
echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT
272
272
- name : Cache Maven/Gradle Dependency/Dist Caches
273
273
id : cache-maven
274
- uses : actions/cache@v4
274
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
275
275
# if it's not a pull request, we restore and save the cache
276
276
if : github.event_name != 'pull_request'
277
277
with :
@@ -288,7 +288,7 @@ jobs:
288
288
${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
289
289
${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
290
290
- name : Restore Maven/Gradle Dependency/Dist Caches
291
- uses : actions/cache/restore@v4
291
+ uses : actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
292
292
# if it a pull request, we restore the cache but we don't save it
293
293
if : github.event_name == 'pull_request'
294
294
with :
@@ -314,18 +314,18 @@ jobs:
314
314
# The actual publishing must be done in a separate job (see ci-report.yml).
315
315
# We don't write to the remote cache as that would be unsafe.
316
316
- name : Upload GitHub Actions artifact for the Develocity build scan
317
- uses : actions/upload-artifact@v4
317
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
318
318
if : " ${{ github.event_name == 'pull_request' && !cancelled() }}"
319
319
with :
320
320
name : build-scan-data-sca
321
321
path : ~/.gradle/build-scan-data
322
322
323
323
- name : Upload test reports (if Gradle failed)
324
- uses : actions/upload-artifact@v4
324
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
325
325
if : failure()
326
326
with :
327
327
name : test-reports-java11-sca
328
328
path : |
329
329
./**/target/reports/tests/
330
330
- name : Omit produced artifacts from build cache
331
- run : ./ci/before-cache.sh
331
+ run : ./ci/before-cache.sh
0 commit comments