Commit dbf44aa 1 parent c03a6cb commit dbf44aa Copy full SHA for dbf44aa
File tree 1 file changed +5
-14
lines changed
1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -125,20 +125,11 @@ jobs:
125
125
run : echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
126
126
- name : Set up Trivy cache directory
127
127
run : echo "TRIVY_CACHE_DIR=$GITHUB_WORKSPACE/trivy-cache" >> $GITHUB_ENV
128
- - name : Restore Trivy cache
129
- id : cache-trivy-db
130
- uses : actions/cache@v4.1.2
131
- with :
132
- path : ${{ github.workspace }}/trivy-cache
133
- key : ${{ runner.os }}-trivy-db-${{ env.DATE }}
134
- restore-keys : |
135
- ${{ runner.os }}-trivy-db-
136
- - name: Download Trivy database if not cached
137
- if: steps.cache-trivy-db.outputs.cache-hit != 'true'
138
- run: |
139
- trivy --download-db-only
140
- mkdir -p $GITHUB_WORKSPACE/trivy-cache
141
- mv ~/.cache/trivy/db $GITHUB_WORKSPACE/trivy-cache
128
+ - name : Download Trivy database
129
+ run : |
130
+ trivy --download-db-only
131
+ mkdir -p $GITHUB_WORKSPACE/trivy-cache
132
+ mv ~/.cache/trivy/db $GITHUB_WORKSPACE/trivy-cache
142
133
- name : Save Trivy cache
143
134
uses : actions/cache@v4.1.2
144
135
with :
You can’t perform that action at this time.
0 commit comments