This commit is contained in:
parent
8473b553f8
commit
4c0d5f6ef9
@ -2,7 +2,7 @@ name: Vulnerability Scan
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 14 * * *'
|
||||
- cron: "0 14 * * *"
|
||||
|
||||
jobs:
|
||||
scan:
|
||||
@ -16,9 +16,10 @@ jobs:
|
||||
id: scan
|
||||
uses: aquasecurity/trivy-action@master
|
||||
with:
|
||||
image-ref: 'docker.asperti.com/paspo/glpi:latest'
|
||||
format: 'json'
|
||||
output: 'trivy-results.json'
|
||||
image-ref: "docker.asperti.com/paspo/glpi:latest"
|
||||
format: "json"
|
||||
output: "trivy-results.json"
|
||||
|
||||
# if some vulnerability is found, we fail
|
||||
- name: check output
|
||||
run: if [ $(jq '.Results[0].Vulnerabilities|length' trivy-results.json) -ne "0" ] ; then exit 1 ; fi
|
||||
|
Loading…
Reference in New Issue
Block a user