Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1ccef265f5 | ||
|
|
d62898dfb3 | ||
|
|
6bce46377c | ||
|
|
101d9bacf6 | ||
|
|
8eccb55397 |
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
FROM aquasec/trivy:0.19.1
|
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
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|||||||
+1
-1
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user