mirror of
https://github.com/aquasecurity/trivy-action.git
synced 2026-05-14 03:02:40 +00:00
fix: Fix skip-files and hide-progress options not being applied when using Sarif report format (#297)
* Update entrypoint.sh * Update entrypoint.sh * Update entrypoint.sh
This commit is contained in:
@@ -163,6 +163,7 @@ if [ $ignorePolicy ];then
|
|||||||
fi
|
fi
|
||||||
if [ "$hideProgress" == "true" ];then
|
if [ "$hideProgress" == "true" ];then
|
||||||
ARGS="$ARGS --no-progress"
|
ARGS="$ARGS --no-progress"
|
||||||
|
SARIF_ARGS="$SARIF_ARGS --no-progress"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
listAllPkgs=$(echo $listAllPkgs | tr -d '\r')
|
listAllPkgs=$(echo $listAllPkgs | tr -d '\r')
|
||||||
@@ -173,6 +174,7 @@ if [ "$skipFiles" ];then
|
|||||||
for i in $(echo $skipFiles | tr "," "\n")
|
for i in $(echo $skipFiles | tr "," "\n")
|
||||||
do
|
do
|
||||||
ARGS="$ARGS --skip-files $i"
|
ARGS="$ARGS --skip-files $i"
|
||||||
|
SARIF_ARGS="$SARIF_ARGS --skip-files $i"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user