From cb606dfdb0d2b3698ace62192088ef4f5360b24f Mon Sep 17 00:00:00 2001 From: simar7 <1254783+simar7@users.noreply.github.com> Date: Wed, 3 Aug 2022 17:32:25 -0700 Subject: [PATCH] fix(sarif): Add timeout and security-checks for sarif (#156) --- entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index de6191a..6b6f54f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -111,6 +111,7 @@ if [ $vulnType ] && [ "$scanType" != "config" ] && [ "$scanType" != "sbom" ];the fi if [ $securityChecks ];then ARGS="$ARGS --security-checks $securityChecks" + SARIF_ARGS="$SARIF_ARGS --security-checks $securityChecks" fi if [ $severity ];then ARGS="$ARGS --severity $severity" @@ -141,6 +142,7 @@ if [ $trivyIgnores ];then fi if [ $timeout ];then ARGS="$ARGS --timeout $timeout" + SARIF_ARGS="$SARIF_ARGS --timeout $timeout" fi if [ $ignorePolicy ];then ARGS="$ARGS --ignore-policy $ignorePolicy"