diff --git a/entrypoint.sh b/entrypoint.sh index eb3953b..db9421a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -163,13 +163,13 @@ fi trivyConfig=$(echo $trivyConfig | tr -d '\r') if [ $trivyConfig ]; then - echo "Running Trivy with trivy.yaml config from: " $trivyConfig - trivy --config $trivyConfig ${scanType} $ARGS ${artifactRef} + echo "Running Trivy with trivy.yaml config from: " ${trivyConfig} + trivy --config ${trivyConfig} ${scanType} ${artifactRef} returnCode=$? else echo "Running trivy with options: trivy ${scanType} ${ARGS}" "${artifactRef}" echo "Global options: " "${GLOBAL_ARGS}" - trivy $GLOBAL_ARGS ${scanType} $ARGS ${artifactRef} + trivy $GLOBAL_ARGS ${scanType} ${ARGS} ${artifactRef} returnCode=$? fi