mirror of
https://github.com/aquasecurity/trivy-action.git
synced 2026-05-14 03:02:40 +00:00
Pin docker image, and update skip dirs argument passing to trivy (#41)
This commit is contained in:
+1
-1
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user