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

This reverts commit ee6a4f5af1.
pull/349/head
Simar 3 weeks ago
parent ee6a4f5af1
commit 7088d18dcb

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

Loading…
Cancel
Save