Add Checkov and Hadolint heads; DNS option for self-hosted runners#4
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings Cerberus to parity with the DefectDojo pipeline it is meant to replace, which runs five scanners — we had three.
dnsinput on the action: self-hosted runners can sit behind a VPN resolver their containers cannot reach — without explicit DNS, Semgrep cannot fetch its rules and Trivy cannot fetch its vulnerability database, and both quietly produce an empty report. The existing DefectDojo workflow works around this with--dns 1.1.1.1 --dns 8.8.8.8; we make it configurablefetch-depth: 0(Gitleaks scans the whole history) and the self-hosted DNS caveatDetails worth knowing, found by running them:
results_sarif.sarif(notresults.sarif) into--output-file-path, and exits non-zero whenever it finds anything — the runner prefers the report over the exit codeVerified with the image against a local tracker: all five heads run and report (12 Trivy, 8 Hadolint, 4 Checkov, 3 Gitleaks, 2 Semgrep = 29 findings), a repeat scan reports 0 new / 29 known. That run also surfaced a second fingerprint-collision bug on the tracker side (Semgrep OSS emits a placeholder fingerprint) — fixed in startmatter/k#334.