Skip to content

Commit

Permalink
Pin docker image, and update skip dirs argument passing to trivy (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul2393 committed May 6, 2021
1 parent 731c4a9 commit 341f810
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion entrypoint.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 341f810

Please sign in to comment.