mirror of https://github.com/docker/docs.git
parent
5900235a2e
commit
2f85bb7296
|
|
@ -22,11 +22,11 @@ stage('Analyze image') {
|
|||
sh 'echo $DOCKER_HUB_PAT | docker login -u $DOCKER_HUB_USER --password-stdin'
|
||||
|
||||
// Analyze and fail on critical or high vulnerabilities
|
||||
sh 'docker-scout cves $IMAGE_TAG --exit-code --only-serverity critical,high'
|
||||
sh 'docker-scout cves $IMAGE_TAG --exit-code --only-severity critical,high'
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
This installs Docker Scout, logs into Docker Hub, and then runs Docker Scout to
|
||||
generate a CVE report for an image and tag. It only shows critical or
|
||||
high-severity vulnerabilities.
|
||||
high-severity vulnerabilities.
|
||||
|
|
|
|||
Loading…
Reference in New Issue