feat: support per-repository scanner profiles - #1
Merged
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.
Summary
--scanner-config-filesupport toloupectl repo addandrepo updateextra_source_pathsto repository source discoveryDockerfileandCaddyfileMotivation
Repositories can contain security-relevant operational files outside Loupe's automatically discovered package roots. A stored per-repository profile makes that scope explicit and repeatable without discarding existing scan history when the profile changes.
The first prepared consumer is
0x3639/testnet, whose profile adds its devnet setup script, container definitions, Caddy configuration, and Vite configuration to the normal TypeScript source scope.Validation
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features -- -D warningson Linuxcargo check --workspace --all-targetson Linuxcargo test --workspace --all-targetson Linuxcargo test -p loupe-cli -p loupe-proto -p loupe-storage(115 local tests passed)git diff --checkSafety
Configured paths are canonicalized and constrained to the checked-out worktree. Invalid, escaping, and missing entries are ignored with a warning. Explicit files still honor path exclusions and size limits.
Privacy
The change contains no credentials, repository secrets, personal identifiers, or local filesystem paths.