This commit is contained in:
parent
c3e2fab933
commit
8473b553f8
@ -17,10 +17,8 @@ jobs:
|
||||
uses: aquasecurity/trivy-action@master
|
||||
with:
|
||||
image-ref: 'docker.asperti.com/paspo/glpi:latest'
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
||||
format: 'json'
|
||||
output: 'trivy-results.json'
|
||||
|
||||
- name: check output
|
||||
env:
|
||||
AAA: ${{ steps.scan.outputs }}
|
||||
run: echo ""
|
||||
run: if [ $(jq '.Results[0].Vulnerabilities|length' trivy-results.json) -ne "0" ] ; then exit 1 ; fi
|
||||
|
Loading…
Reference in New Issue
Block a user