mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-07-27 21:09:11 +00:00
feat: add the ability to select the images to be check from registry in order to integrate in ci
Signed-off-by: Anthony Roger <aroger@softwaymedical.fr>
This commit is contained in:
parent
cc6b16d8a7
commit
1dd7956760
2 changed files with 17 additions and 2 deletions
|
@ -46,13 +46,14 @@ usage () {
|
|||
-e CHECK optional Comma delimited list of specific check(s) to exclude
|
||||
-i INCLUDE optional Comma delimited list of patterns within a container name to check
|
||||
-x EXCLUDE optional Comma delimited list of patterns within a container name to exclude from check
|
||||
-t TARGET optional Comma delimited list of images name to check.
|
||||
EOF
|
||||
}
|
||||
|
||||
# Get the flags
|
||||
# If you add an option here, please
|
||||
# remember to update usage() above.
|
||||
while getopts bhl:c:e:i:x: args
|
||||
while getopts bhl:c:e:i:x:t: args
|
||||
do
|
||||
case $args in
|
||||
b) nocolor="nocolor";;
|
||||
|
@ -62,6 +63,7 @@ do
|
|||
e) checkexclude="$OPTARG" ;;
|
||||
i) include="$OPTARG" ;;
|
||||
x) exclude="$OPTARG" ;;
|
||||
t) imgList="$OPTARG" ;;
|
||||
*) usage; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue