@@ -23,15 +23,15 @@ jobs:
2323 timeout-minutes : 60
2424 steps :
2525 - name : Checkout github-actions
26- uses : actions/checkout@v6
26+ uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2727 with :
2828 ref : ${{ github.sha }}
2929
3030 - name : Checkout strimzi/drain-cleaner
31- uses : actions/checkout@v6
31+ uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3232 with :
3333 repository : strimzi/drain-cleaner
34- ref : main
34+ ref : 1.6.0
3535 path : drain-cleaner
3636
3737 - name : Copy drain-cleaner project to workspace root
4444 uses : ./.github/actions/dependencies/install-yq
4545
4646 - name : Restore Maven cache
47- uses : actions/cache/restore@v5
47+ uses : actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
4848 with :
4949 path : ~/.m2/repository
5050 key : maven-${{ hashFiles('**/pom.xml') }}
@@ -59,14 +59,16 @@ jobs:
5959 uses : ./.github/actions/security/snyk-maven-scan
6060 with :
6161 cvssThreshold : " 99.0"
62- monitor : " false"
62+ # Keep false to avoid uploading testing results to Snyk App
63+ snykMonitor : " false"
64+ # Keep false to avoid uploading results to GitHub Code Scanning page
65+ uploadToCodeScanning : " false"
6366 projectPrefix : test-drain-cleaner
64- uploadToCodeScanning : " true"
6567 env :
6668 SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
6769
6870 - name : Download SARIF artifact
69- uses : actions/download-artifact@v7
71+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
7072 with :
7173 name : snyk-maven-test-drain-cleaner.sarif
7274 path : sarif-output
8688 jq empty "$SARIF_FILE"
8789 echo "SARIF file is valid JSON with $(jq '.runs | length' "$SARIF_FILE") run(s)"
8890
91+ # Test workflow loads image artifacts from test-integrations workflow.
92+ # To avoid additional image build, the scan check will wait until integration workflow store the artifacts
8993 wait-for-container-artifact :
9094 name : Wait for Container Artifact
9195 runs-on : ubuntu-latest
9599 steps :
96100 - name : Wait for container artifact
97101 id : find-build
98- uses : actions/github-script@v9
102+ uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
99103 env :
100104 INPUT_SHA : ${{ github.sha }}
101105 ARTIFACT_NAME : " containers-operators-amd64.tar"
@@ -174,22 +178,20 @@ jobs:
174178 strategy :
175179 matrix :
176180 image :
181+ # Kafka images are not here to avoid need to change Kafka versions on multiple places when we bump operators repo versions for testing
177182 - buildah-latest-amd64
178- - kafka-build-kafka-4.1.0-amd64
179- - kafka-build-kafka-4.1.1-amd64
180- - kafka-build-kafka-4.2.0-amd64
181183 - kaniko-executor-latest-amd64
182184 - maven-builder-latest-amd64
183185 - operator-latest-amd64
184186 steps :
185187 - name : Checkout github-actions
186- uses : actions/checkout@v6
188+ uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
187189
188190 - name : Install Docker
189191 uses : ./.github/actions/dependencies/install-docker
190192
191193 - name : Download container archive
192- uses : actions/download-artifact@v7
194+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
193195 with :
194196 name : containers-operators-amd64.tar
195197 run-id : ${{ needs.wait-for-container-artifact.outputs.run-id }}
@@ -204,7 +206,7 @@ jobs:
204206 imageFile : docker-images/container-archives/${{ matrix.image }}.tar.gz
205207 image : ${{ matrix.image }}
206208 cvssThreshold : " 99.0"
207- monitor : " false"
209+ snykMonitor : " false"
208210 uploadToCodeScanning : " false"
209211 projectPrefix : test-operators
210212 env :
@@ -233,13 +235,13 @@ jobs:
233235
234236 steps :
235237 - name : Checkout github-actions
236- uses : actions/checkout@v6
238+ uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
237239
238240 - name : Install Docker
239241 uses : ./.github/actions/dependencies/install-docker
240242
241243 - name : Download container archive
242- uses : actions/download-artifact@v7
244+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
243245 with :
244246 name : containers-drain-cleaner-amd64.tar
245247 run-id : ${{ needs.wait-for-container-artifact.outputs.run-id }}
@@ -254,7 +256,9 @@ jobs:
254256 imageFile : drain-cleaner-container-amd64.tar.gz
255257 image : drain-cleaner-amd64
256258 cvssThreshold : " 99.0"
257- monitor : " true"
259+ # Keep false to avoid uploading testing results to Snyk App
260+ snykMonitor : " false"
261+ # Keep false to avoid uploading results to GitHub Code Scanning page
258262 uploadToCodeScanning : " false"
259263 projectPrefix : test-drain-cleaner
260264 env :
0 commit comments