@@ -21,10 +21,10 @@ jobs:
21
21
permissions :
22
22
security-events : write
23
23
steps :
24
- - uses : actions/checkout@v4
24
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25
25
26
26
- name : Docker Meta
27
- uses : docker/metadata-action@v5
27
+ uses : docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
28
28
with :
29
29
images : |
30
30
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
@@ -44,24 +44,24 @@ jobs:
44
44
org.opencontainers.image.description=The backend for the dataportal, including feasibility query execution as well as data selection and extraction.
45
45
46
46
- name : Set up JDK 22
47
- uses : actions/setup-java@v4
47
+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
48
48
with :
49
49
distribution : ' temurin'
50
50
java-version : 22
51
51
52
52
- name : Cache Local Maven Repo
53
- uses : actions/cache@v4
53
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
54
54
with :
55
55
path : ~/.m2/repository
56
56
key : tests-maven-${{ hashFiles('pom.xml') }}
57
57
58
- - uses : s4u/maven-settings-action@v3.0 .0
58
+ - uses : s4u/maven-settings-action@64e42c454dbd42ef6370ac8539685755aedd205b # v3.1 .0
59
59
with :
60
60
servers : |
61
61
[{"id": "mii", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}"}]
62
62
63
63
- name : Initialize CodeQL
64
- uses : github/codeql-action/init@v3
64
+ uses : github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
65
65
with :
66
66
languages : java
67
67
queries : security-and-quality
@@ -70,33 +70,33 @@ jobs:
70
70
run : mvn -Pdownload-ontology -B verify
71
71
72
72
- name : Upload coverage to Codecov
73
- uses : codecov/codecov-action@v4
73
+ uses : codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
74
74
env :
75
75
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
76
76
with :
77
77
fail_ci_if_error : true
78
78
79
79
- name : Perform CodeQL Analysis
80
- uses : github/codeql-action/analyze@v3
80
+ uses : github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
81
81
82
82
- name : Upload Dataportal Backend Jar
83
- uses : actions/upload-artifact@v4
83
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
84
84
with :
85
85
name : backend-jar
86
86
path : target/dataportalBackend.jar
87
87
88
88
- name : Set up Docker Buildx
89
- uses : docker/setup-buildx-action@v3
89
+ uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
90
90
91
91
- name : Build and Export to Docker
92
- uses : docker/build-push-action@v6
92
+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
93
93
with :
94
94
context : .
95
95
tags : backend:latest
96
96
outputs : type=docker,dest=/tmp/dataportalBackend.tar
97
97
98
98
- name : Upload Dataportal Backend Image
99
- uses : actions/upload-artifact@v4
99
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
100
100
with :
101
101
name : backend-image
102
102
path : /tmp/dataportalBackend.tar
@@ -107,21 +107,21 @@ jobs:
107
107
security-events : write
108
108
109
109
steps :
110
- - uses : actions/checkout@v4
110
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
111
111
112
- - name : Set up JDK 21
113
- uses : actions/setup-java@v4
112
+ - name : Set up JDK 22
113
+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
114
114
with :
115
- distribution : ' zulu '
116
- java-version : 21
115
+ distribution : ' temurin '
116
+ java-version : 22
117
117
118
118
- name : Cache Local Maven Repo
119
- uses : actions/cache@v4
119
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
120
120
with :
121
121
path : ~/.m2/repository
122
122
key : security-scan-maven-${{ hashFiles('pom.xml') }}
123
123
124
- - uses : s4u/maven-settings-action@v3.0 .0
124
+ - uses : s4u/maven-settings-action@64e42c454dbd42ef6370ac8539685755aedd205b # v3.1 .0
125
125
with :
126
126
servers : |
127
127
[{"id": "mii", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}"}]
@@ -130,14 +130,14 @@ jobs:
130
130
run : mvn -Pdownload-ontology -B -DskipTests package
131
131
132
132
- name : Build and push Docker image
133
- uses : docker/build-push-action@v6
133
+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
134
134
with :
135
135
context : .
136
136
tags : security-scan-build:latest
137
137
push : false
138
138
139
139
- name : Run Trivy Vulnerability Scanner
140
- uses : aquasecurity/trivy-action@master
140
+ uses : aquasecurity/trivy-action@dc5a429b52fcf669ce959baa2c2dd26090d2a6c4 # v0.32.0
141
141
with :
142
142
image-ref : security-scan-build:latest
143
143
format : sarif
@@ -149,7 +149,7 @@ jobs:
149
149
TRIVY_JAVA_DB_REPOSITORY : public.ecr.aws/aquasecurity/trivy-java-db:1
150
150
151
151
- name : Upload Trivy Scan Results to GitHub Security Tab
152
- uses : github/codeql-action/upload-sarif@v3
152
+ uses : github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
153
153
with :
154
154
sarif_file : trivy-results.sarif
155
155
@@ -165,16 +165,16 @@ jobs:
165
165
166
166
steps :
167
167
- name : Check out Git repository
168
- uses : actions/checkout@v4
168
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
169
169
170
170
- name : Download Dataportal Backend Image
171
- uses : actions/download-artifact@v4
171
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
172
172
with :
173
173
name : backend-image
174
174
path : /tmp
175
175
176
176
- name : Install jq
177
- uses : dcarbone/install-jq-action@v2.1 .0
177
+ uses : dcarbone/install-jq-action@b7ef57d46ece78760b4019dbc4080a1ba2a40b45 # v3.2 .0
178
178
179
179
- name : Load Dataportal Backend Image
180
180
run : docker load --input /tmp/dataportalBackend.tar
@@ -223,7 +223,7 @@ jobs:
223
223
224
224
- name : Dump docker logs on failure
225
225
if : failure()
226
- uses : jwalton/gh-docker-logs@v2
226
+ uses : jwalton/gh-docker-logs@2741064ab9d7af54b0b1ffb6076cf64c16f0220e # v2.2.2
227
227
228
228
release :
229
229
if : ${{ startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'pull_request') }}
@@ -236,34 +236,34 @@ jobs:
236
236
contents : write
237
237
packages : write
238
238
steps :
239
- - uses : actions/checkout@v4
239
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
240
240
241
241
- name : Parse version
242
- uses : nowsprinting/check-version-format-action@v4
242
+ uses : nowsprinting/check-version-format-action@c7180d5aa53d69af70c364c047482fc71e133f55 # v4.0.6
243
243
id : version
244
244
with :
245
245
prefix : ' v'
246
246
247
247
- name : Report invalid version
248
248
if : ${{ startsWith(github.ref, 'refs/tags/v') && steps.version.outputs.is_valid != 'true' }}
249
- uses : actions/github-script@v7
249
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
250
250
with :
251
251
script : |
252
252
core.setFailed('Tag name "${{ github.ref_name }}" is not a valid semantic version!')
253
253
254
254
- name : Set up JDK 22
255
- uses : actions/setup-java@v4
255
+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
256
256
with :
257
257
distribution : ' temurin'
258
258
java-version : 22
259
259
260
260
- name : Cache Local Maven Repo
261
- uses : actions/cache@v4
261
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
262
262
with :
263
263
path : ~/.m2/repository
264
264
key : release-maven-${{ hashFiles('pom.xml') }}
265
265
266
- - uses : s4u/maven-settings-action@v3.0 .0
266
+ - uses : s4u/maven-settings-action@64e42c454dbd42ef6370ac8539685755aedd205b # v3.1 .0
267
267
with :
268
268
servers : |
269
269
[{"id": "mii", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}"}]
@@ -277,20 +277,20 @@ jobs:
277
277
run : mvn -Pdownload-ontology -B -DskipTests package
278
278
279
279
- name : Login to GitHub Docker Registry
280
- uses : docker/login-action@v3
280
+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
281
281
with :
282
282
registry : ghcr.io
283
283
username : ${{ github.actor }}
284
284
password : ${{ secrets.GITHUB_TOKEN }}
285
285
286
286
- name : Set up QEMU
287
- uses : docker/setup-qemu-action@v3
287
+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
288
288
289
289
- name : Set up Docker Buildx
290
- uses : docker/setup-buildx-action@v3
290
+ uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
291
291
292
292
- name : Build and push Docker image
293
- uses : docker/build-push-action@v6
293
+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
294
294
with :
295
295
context : .
296
296
platforms : linux/amd64,linux/arm64
0 commit comments