Compare commits

..

2 Commits

Author SHA1 Message Date
Teppei Fukuda
f5e208a156 feat: suppress progress bar (#31)
Add `--no-progress`
2021-03-11 10:36:48 -08:00
Simarpreet Singh
bceef37a45 entrypoint: Remove \r from ignoreUnfixed option (#29)
Signed-off-by: Simarpreet Singh <simar@linux.com>
2021-02-26 22:33:29 -08:00
+3 -2
View File
@@ -40,6 +40,7 @@ export artifactRef="${imageRef}"
if [ "${scanType}" = "fs" ];then
artifactRef=$(echo $scanRef | tr -d '\r')
fi
ignoreUnfixed=$(echo $ignoreUnfixed | tr -d '\r')
ARGS=""
if [ $format ];then
@@ -64,5 +65,5 @@ if [ $output ];then
ARGS="$ARGS --output $output"
fi
echo "Runnin trivy with options" "${ARGS}" "${artifactRef}"
trivy ${scanType} $ARGS ${artifactRef}
echo "Running trivy with options: " --no-progress "${ARGS}" "${artifactRef}"
trivy ${scanType} --no-progress $ARGS ${artifactRef}