Compare commits

...
4 Commits
3 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM aquasec/trivy:0.19.2 FROM aquasec/trivy:0.20.2
COPY entrypoint.sh / COPY entrypoint.sh /
RUN apk --no-cache add bash RUN apk --no-cache add bash
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
+1 -1
View File
@@ -54,7 +54,7 @@ inputs:
required: false required: false
default: '' default: ''
timeout: timeout:
description: 'timeout (default 2m0s)' description: 'timeout (default 5m0s)'
required: false required: false
default: '' default: ''
ignore-policy: ignore-policy:
+11
View File
@@ -111,3 +111,14 @@ fi
echo "Running trivy with options: ${ARGS}" "${artifactRef}" echo "Running trivy with options: ${ARGS}" "${artifactRef}"
echo "Global options: " "${GLOBAL_ARGS}" echo "Global options: " "${GLOBAL_ARGS}"
trivy $GLOBAL_ARGS ${scanType} $ARGS ${artifactRef} trivy $GLOBAL_ARGS ${scanType} $ARGS ${artifactRef}
returnCode=$?
# SARIF is special. We output all vulnerabilities,
# regardless of severity level specified in this report.
# This is a feature, not a bug :)
if [[ ${template} == *"sarif"* ]]; then
echo "Building SARIF report"
trivy --quiet ${scanType} --format template --template ${template} --output ${output} ${artifactRef}
fi
exit $returnCode