File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -421,8 +421,21 @@ jobs:
421
421
with :
422
422
name : docker-image-all-extensions-${{ needs.docker_build_setup.outputs.version }}
423
423
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
+
424
437
- name : Scan image with Trivy
425
- uses : aquasecurity/trivy-action@master
438
+ uses : aquasecurity/trivy-action@0.24.0
426
439
with :
427
440
input : /github/workspace/image.tar # from download-artifact
428
441
format : ' sarif'
You can’t perform that action at this time.
0 commit comments