You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "The threshold (equal and above) at which discovered vulnerabilities are reported. May be 'Defcon1', 'Critical', 'High', 'Medium', 'Low', 'Negligible' or 'Unknown'"
251
-
default: "High"
252
-
fail_on_discovered_vulnerabilities:
253
-
type: "boolean"
254
-
description: "Fail command when vulnerabilities at severity equal to or above the threshold are discovered"
255
-
default: true
256
-
fail_on_unsupported_images:
257
-
type: "boolean"
258
-
description: "Fail command when image cannot be scanned for vulnerabilities"
259
-
default: true
260
-
disable_verbose_console_output:
261
-
type: "boolean"
262
-
description: "Disable verbose console output"
263
-
default: false
264
-
docker_tar_dir:
265
-
type: "string"
266
-
description: "Path of directory that Docker tarballs are stored"
267
-
default: "/docker-tars"
268
-
steps:
269
-
- run:
270
-
name: "Vulnerability scan"
271
-
command: |
272
-
#!/usr/bin/env bash
273
-
274
-
set -xe
275
-
276
-
DOCKER_TAR_DIR="<< parameters.docker_tar_dir >>"
277
-
278
-
if [ -z "<< parameters.image_file >><< parameters.image >>" ] && [ -z "$(ls -A "$DOCKER_TAR_DIR" 2>/dev/null)" ]; then
279
-
echo "image_file or image parameters or docker tarballs must be present"
280
-
exit 255
281
-
fi
282
-
283
-
REPORT_DIR=/clair-reports
284
-
mkdir $REPORT_DIR
285
-
286
-
DB=$(docker run -p 5432:5432 -d arminc/clair-db:latest)
287
-
CLAIR=$(docker run -p 6060:6060 --link "$DB":postgres -d arminc/clair-local-scan:latest)
288
-
CLAIR_SCANNER=$(docker run -v /var/run/docker.sock:/var/run/docker.sock -d ovotech/clair-scanner@sha256:8a4f920b4e7e40dbcec4a6168263d45d3385f2970ee33e5135dd0e3b75d39c75 tail -f /dev/null)
0 commit comments