Test trivy with cache.
This commit is contained in:
@@ -50,18 +50,8 @@ jobs:
|
|||||||
ACTIONS_RUNTIME_TOKEN: ''
|
ACTIONS_RUNTIME_TOKEN: ''
|
||||||
with:
|
with:
|
||||||
outputs: type=docker,dest=/tmp/startup.tar
|
outputs: type=docker,dest=/tmp/startup.tar
|
||||||
|
cache-to: local,src=/tmp
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: startup.tar
|
|
||||||
path: /tmp/startup.tar
|
|
||||||
|
|
||||||
- name: Download artifact
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: startup
|
|
||||||
path: /tmp
|
|
||||||
|
|
||||||
- name: Check with trivy
|
- name: Check with trivy
|
||||||
uses: aquasecurity/trivy-action@master
|
uses: aquasecurity/trivy-action@master
|
||||||
@@ -70,3 +60,4 @@ jobs:
|
|||||||
scan-type: 'fs'
|
scan-type: 'fs'
|
||||||
format: 'table'
|
format: 'table'
|
||||||
vuln-type: 'os,library'
|
vuln-type: 'os,library'
|
||||||
|
cache-from: local,src=/tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user