fix: 🐛 allow trivy-config and other options to be used together (#338)

pull/344/head
arairyus 2 weeks ago committed by GitHub
parent b5f4977b78
commit ee6a4f5af1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -195,7 +195,7 @@ if [ "${format}" == "sarif" ] && [ "${limitSeveritiesForSARIF}" != "true" ]; the
trivy --quiet ${scanType} --format sarif --output ${output} $SARIF_ARGS ${artifactRef}
elif [ $trivyConfig ]; then
echo "Running Trivy with trivy.yaml config from: " $trivyConfig
trivy --config $trivyConfig ${scanType} ${artifactRef}
trivy --config $trivyConfig ${scanType} ${ARGS}" ${artifactRef}
else
echo "Running trivy with options: trivy ${scanType} ${ARGS}" "${artifactRef}"
echo "Global options: " "${GLOBAL_ARGS}"

Loading…
Cancel
Save