Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable all severities on the Trivy daily report #614

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/build-notebooks-TEMPLATE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,6 @@ jobs:
IMAGE_NAME=${{ steps.resolve-image.outputs.image }}
echo "Scanning $IMAGE_NAME"

SEVERITY_OPTION=""
# Report only higher vulnerabilities if not a pull request
if [ "${{ fromJson(inputs.github).event_name }}" != "pull_request" ]; then
SEVERITY_OPTION="--severity CRITICAL,HIGH"
fi

# have trivy access podman socket,
# https://github.com/aquasecurity/trivy/issues/580#issuecomment-666423279
podman run --rm \
Expand All @@ -185,7 +179,6 @@ jobs:
--podman-host /var/run/podman/podman.sock \
--scanners vuln --ignore-unfixed \
--exit-code 0 --timeout 30m \
$SEVERITY_OPTION \
--format template --template "@/report/$REPORT_TEMPLATE" -o /report/$REPORT_FILE \
$IMAGE_NAME

Expand Down