Repository navigation
feat(scan): run deterministic scanners and honor ignore.rules / cora-ignore (#595) - #599
Merged
Merged
Conversation
…ignore (#595) cora scan now runs the secrets and security scanners on scanned files, merges them with LLM findings, and applies ignore.rules and inline cora-ignore markers, so findings survive an LLM batch failure. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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
cora scannow runs the deterministic secrets and security scanners on every scanned file and merges the results with LLM and index findings viarules::merge_rule_findings(same dedup by file:line ascora review).ignore.rules(apply_ignore_rules, nowpub(crate)) and by inlinecora-ignore:markers.FileChunks (scanner::files_as_chunks), so the existing scanners andinline_suppress::applyare reused unchanged. Review behaviour is untouched.docs/configuration.md) and CHANGELOG[Unreleased]updated.Why
cora scanwas LLM-only. An LLM 502 produced "No issues found" even for an obvious hardcoded password, andignore.rules/cora-ignore:had no effect on scan results.Testing
src/commands/scan.rs: secret found with no LLM; inline marker suppresses it;ignore.rulessuppresses it; an LLM batch failure (unreachable 127.0.0.1:1, no real network) still yields the deterministic finding and exit code 2 in block mode.cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo testall green.Closes #595
🤖 Generated with Claude Code