feat: native baseline files, Coverage report line, scanner-error diagnostics - #14
Merged
Merged
Conversation
…nostics - gitleaks: --gitleaks-ignore-path pinned to the scanned repo so ignore files load from the repo, not the caller's cwd - trufflehog: pass -x REPO/.trufflehog-exclude when present; a non-zero exit other than 183 (findings) now surfaces the tool's stderr tail instead of a silent red (e.g. a bad regex in the exclude file) - checkov: pass --baseline REPO/.checkov.baseline when present - Coverage line (terminal + report): lifts osv's "Scanned <file> ... found N package(s)" lines per repo; handles singular "1 package" and paths with spaces; prints "no package manifests parsed" instead of silence - docs: coverage matrix, blind-spot list, baselines section with two verified caveats (osv-scanner.toml loads beside each manifest, not from the repo root; checkov baselines match resource name + check id across files) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B9sELo4AqzS2NcvToDhdNy
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.
What
Third slice of the deployment-gate plan: accepted findings stop re-blocking, and the report says what was actually parsed.
--gitleaks-ignore-path),.trufflehog-excludeand.checkov.baselineare passed automatically when present at the repo root. Reasons/expiry live in each tool's own format, reviewed in the PR that edits the file.Coverage:line (terminal + report) per repo, lifted from osv'sScanned <file> ... found N package(s)output. Handles the singular1 packageform, paths with spaces, and printsno package manifests parsedwhen osv found nothing - silence never masquerades as coverage.--failexits 183 on findings; any other non-zero is a tool error (e.g. a bad regex in.trufflehog-exclude) and now surfaces the stderr tail instead of an unexplained red.osv-scanner.tomlonly loads beside each manifest (a root-level file does nothing for nested lockfiles), and checkov baselines match resource name + check id across files, so same-named resources inherit suppressions.Verified
bash check.shgreen (shellcheck, PSScriptAnalyzer, YAML).--create-baseline-> exit 0 (both shells).trufflehog error (exit 1):+ reason.🤖 Generated with Claude Code
https://claude.ai/code/session_01B9sELo4AqzS2NcvToDhdNy