Pin docker image, and update skip dirs argument passing to trivy (#41)

This commit is contained in:
rahul2393
2021-05-06 23:15:41 +05:30
committed by GitHub
parent 731c4a9c64
commit 341f810bd6
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM aquasec/trivy:latest
FROM aquasec/trivy:0.17.2
COPY entrypoint.sh /
RUN apk --no-cache add bash
RUN chmod +x /entrypoint.sh
Regular → Executable
+4 -1
View File
@@ -81,7 +81,10 @@ if [ $output ];then
ARGS="$ARGS --output $output"
fi
if [ $skipDirs ];then
ARGS="$ARGS --skip-dirs $skipDirs"
for i in $(echo $skipDirs | tr "," "\n")
do
ARGS="$ARGS --skip-dirs $i"
done
fi
if [ $cacheDir ];then
ARGS="$ARGS --cache-dir $cacheDir"