Skip to content

Commit 38930d7

Browse files
📌 Pin trivy-action to 0.24.0
To resolve the file path errors, see also aquasecurity/trivy-action#404
1 parent 5f3b316 commit 38930d7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,21 @@ jobs:
421421
with:
422422
name: docker-image-all-extensions-${{ needs.docker_build_setup.outputs.version }}
423423

424+
# NOTE: when we can ugprade to newer action versions (see
425+
# aquasecurity/trivy-action#404), this should be obsolete and can be removed.
426+
# This requires to trivy.yml cronjob to have run successfully.
427+
- name: Get current date
428+
id: date
429+
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
430+
431+
- name: Restore caches
432+
uses: actions/cache/restore@v4
433+
with:
434+
path: ${{ github.workspace }}/.cache/trivy
435+
key: cache-trivy-${{ steps.date.outputs.date }}
436+
424437
- name: Scan image with Trivy
425-
uses: aquasecurity/trivy-action@master
438+
uses: aquasecurity/trivy-action@0.24.0
426439
with:
427440
input: /github/workspace/image.tar # from download-artifact
428441
format: 'sarif'

0 commit comments

Comments
 (0)