From 4a9cca3272278b998f89fc7f75d052525f5ed005 Mon Sep 17 00:00:00 2001 From: docs-bot Date: Wed, 18 Feb 2026 22:22:56 +0000 Subject: [PATCH] Supported targeted scans and project name override --- cli.mdx | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/cli.mdx b/cli.mdx index a30d54c..ff2c44f 100644 --- a/cli.mdx +++ b/cli.mdx @@ -171,6 +171,41 @@ By default, the scan command scans the entire project. However, if you only want ```bash corgea scan --only-uncommitted ``` +You can also target specific files or subsets of your project (BLAST scans only) with the `--target` option. This accepts comma-separated values and supports file paths, directory paths, glob patterns, git selectors, or stdin. + +Examples: + +```bash +corgea scan --target src/,pyproject.toml +``` + +```bash +corgea scan --target "src/**/*.py" +``` + +```bash +corgea scan --target git:diff=origin/main...HEAD +``` + +```bash +corgea scan --target git:staged,git:modified,git:untracked +``` + +```bash +corgea scan --target - +``` + +```bash +git ls-files -z | corgea scan --target -0 +``` + +Note: `--only-uncommitted` and `--target` cannot be used together. + +To control the project name shown in Corgea, use `--project-name`. If omitted, the CLI defaults to the git repository name when available, and falls back to the current directory name. + +```bash +corgea scan --project-name my-service +``` The regular BLAST scan includes multiple scans: - Blast Base AI Scan - PolicyIQ Scan