Skip to content

Commit ee6a4f5

Browse files
authored
fix: 🐛 allow trivy-config and other options to be used together (#338)
1 parent b5f4977 commit ee6a4f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ if [ "${format}" == "sarif" ] && [ "${limitSeveritiesForSARIF}" != "true" ]; the
195195
trivy --quiet ${scanType} --format sarif --output ${output} $SARIF_ARGS ${artifactRef}
196196
elif [ $trivyConfig ]; then
197197
echo "Running Trivy with trivy.yaml config from: " $trivyConfig
198-
trivy --config $trivyConfig ${scanType} ${artifactRef}
198+
trivy --config $trivyConfig ${scanType} ${ARGS}" ${artifactRef}
199199
else
200200
echo "Running trivy with options: trivy ${scanType} ${ARGS}" "${artifactRef}"
201201
echo "Global options: " "${GLOBAL_ARGS}"

0 commit comments

Comments
 (0)