diff --git a/entrypoint.sh b/entrypoint.sh index 26a9dae..b7be8b3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -181,13 +181,12 @@ if [ "${format}" == "sarif" ] && [ "${limitSeveritiesForSARIF}" != "true" ]; the elif [ $trivyConfig ]; then 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} - returnCode=$? fi +returnCode=$? set -e if [[ "${format}" == "github" ]]; then