scan_github
Scan GitHub repositories for leaked secrets using configurable rules and optional AI validation to prevent credential exposure.
Instructions
Scan GitHub repositories for leaked secrets
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | GitHub personal access token | |
| owner | Yes | GitHub org or user | |
| repo | No | Repository name (optional, scans all repos if omitted) | |
| branch | No | Branch to scan (optional) | |
| scope | No | Search query e.g. search:org:myorg | |
| report_format | No | n0s1 | |
| show_matched_secret_on_logs | No | Show matched secret values in reports and logs (default: false) | |
| ai_analysis | No | Queue async AI credential validation after the scan (requires n0s1 Pro) | |
| n0s1_api_key | No | n0s1 API key; overrides the N0S1_TOKEN env var |