/application-security:secret-scanningfrom application-security
Configures GitHub secret scanning, push protection, custom patterns, exclusions, alert triage, remediation, bypass workflows, and pre-commit scans. Useful when enabling secret scanning, resolving blocked pushes, writing secret_scanning.yml, creating regex patterns, or scanning code before committing.
Ships in application-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Configure GitHub secret scanning and push protection, define custom patterns, remediate alerts, and guide AI coding agents toward pre-commit scans before secrets reach the repository.
advanced-security@copilot-plugins.Secret scanning detects exposed credentials across full Git history on all branches, issues, pull requests, discussions, wikis, and secret gists. Alerts may be user alerts, partner alerts, or push protection alerts.
| Feature | Scope |
|---|---|
| Secret scanning | Finds supported provider patterns, custom patterns, non-provider patterns, and AI-detected generic secrets. |
| Push protection | Blocks supported secrets in command line pushes, GitHub UI commits, file uploads, REST API requests, and REST API content creation endpoints. |
| Validity checks | Shows active, inactive, or unknown by testing credentials against provider APIs. |
| Extended metadata checks | Adds ownership context after validity checks are enabled. |
| Exclusions | .github/secret_scanning.yml can auto-close alerts and skip push protection for ignored paths. |
.github/secret_scanning.yml only when exclusions are necessary.paths-ignore:
- "docs/**"
- "test/fixtures/**"
- "**/*.example"
| Limit or rule | Requirement |
|---|---|
| Entry count | Maximum 1,000 entries in paths-ignore. |
| File size | .github/secret_scanning.yml must be under 1 MB. |
| Push protection | Excluded paths also skip push protection checks. |
| Hygiene | Be specific, explain exclusions, review periodically, and inform the security team. |
| Option | Use when | Actions |
|---|---|---|
| Remove latest-commit secret | The secret is only in the latest commit. | Remove it, run git commit --amend --all, then git push. |
| Remove earlier-commit secret | The secret is in an older commit. | Find it with git log, run git rebase -i <COMMIT-ID>~1, edit the offending commit, git add ., git commit --amend, git rebase --continue, git push. |
| Bypass | The detected value is safe to push. | Visit the push error URL, choose It's used in tests, It's a false positive, or I'll fix it later, then re-push within 3 hours. |
| Delegated bypass request | Delegated bypass is enabled and the user lacks bypass privileges. | Visit the URL, add a justification, submit request, wait for approval/denial, then push only if approved. |
Read references/push-protection.md for detailed bypass, delegated bypass, command line, REST API, and user push protection behavior.
| Scope | Applies to |
|---|---|
| Repository level | One repository. |
| Organization level | All repositories with secret scanning enabled. |
| Enterprise level | All organizations in the enterprise. |
Create patterns under Settings → Advanced Security → Custom patterns → New pattern. Provide a name, regex, sample test string, Save and dry run, review false positives, Publish pattern, and enable push protection when the pattern is reliable. Copilot-assisted generation can draft regexes from a description and examples. Read references/custom-patterns.md for regex syntax, dry runs, scopes, and Copilot generation.
| Type | Description | Visibility |
|---|---|---|
| User alerts | Secrets found in repository content. | Security tab. |
| Push protection alerts | Secrets pushed through bypass. | Security tab with filter bypassed: true. |
| Partner alerts | Secrets reported to providers. | Provider-only, not shown in repository. |
| Generic alerts | Non-provider and AI-detected secrets. | Limited to 5,000 per repository. |
Remediate in this order: rotate the credential immediately, review location/commit/author, prioritize active over unknown over inactive, and remove from Git history only when needed after rotation. Dismiss only as False positive, Revoked, or Used in tests with documented rationale. Read references/alerts-and-remediation.md for alert types, validity, metadata, generic alerts, remediation, git history, and REST API details.
Install the Advanced Security plugin when an AI coding agent must scan code before committing:
/plugin install advanced-security@copilot-plugins
In Visual Studio Code, open Chat: Plugins or use @agentPlugins, install advanced-security, then run /secret-scanning in Copilot Chat. The plugin provides run_secret_scanning and a dedicated scanning skill.
references/push-protection.md: push protection mechanics, bypass workflow, delegated bypass, command line, REST API, user push protection.references/custom-patterns.md: custom pattern creation, regex syntax, dry runs, publish flow, scopes, Copilot-assisted pattern generation.references/alerts-and-remediation.md: alert types, validity checks, extended metadata, generic alerts, remediation, git history, REST API.Preserve exact alert, bypass, and scope vocabulary: Copilot, Private/internal, REST API, Team/Enterprise, auto-closed, bypass, bypass request, command line, custom pattern, delegated, dry run, enterprise, generic, git history, metadata, org-owned, organization, organization-specific, partner alert, provider-only, publish, regex, remediation, secret_scanning.yml, time-intensive, user alert, user push protection, and validity.
## Secret scanning result
**Status:** configured | remediated | needs action | blocked
**Scope:** repository | organization | enterprise | local pre-commit
### Actions
| Area | Action | Evidence |
| --- | --- | --- |
| Secret scanning | `<enabled/configured/skipped>` | `<settings, command, or file>` |
| Push protection | `<enabled/configured/skipped>` | `<settings or reason>` |
| Custom patterns | `<pattern name or none>` | `<dry-run result>` |
| Alerts | `<rotated/dismissed/open>` | `<alert IDs or links>` |
### Remediation
- Credential rotation: complete | required | not applicable
- Git history rewrite: required | not required | deferred
- Bypass: not used | used with reason `<reason>` | requested
### Validation
- `.github/secret_scanning.yml`: valid | not present | needs fix
- Pre-commit scan: pass | fail | not run
.github/secret_scanning.yml respects the 1,000-entry and 1 MB limits.active, inactive, and unknown.advanced-security@copilot-plugins and run_secret_scanning when available.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin application-security7 skills in this plugin
/codeqlConfigure and run CodeQL code scanning with GitHub Actions workflows, default or advanced setup, CodeQL CLI databases, SARIF uploads, custom query packs, monorepo categories, build modes, and alert triage. Use this skill when the user asks to create or customize codeql.yml, choose CodeQL setup, configure a language matrix, run codeql database create or database analyze, upload SARIF, troubleshoot CodeQL builds, or interpret code scanning alerts./data-breach-blast-radiusPre-breach impact analysis: inventories sensitive data (PII, PHI, PCI-DSS, credentials), traces data flows, scores exposure vectors, and produces a regulatory blast radius report with fine ranges sourced verbatim from GDPR Art. 83, CCPA § 1798.155(a), and HIPAA 45 CFR § 160.404. Cost benchmarks from IBM Cost of a Data Breach Report (annually updated). All citations in references/SOURCES.md for verification. Use when asked: "assess breach impact", "what data could be exposed", "calculate blast radius", "data exposure analysis", "how bad would a breach be", "quantify data risk", "sensitive data inventory", "data flow security audit", "pre-breach assessment", "worst-case breach scenario", "breach readiness", "data risk report", "/data-breach-blast-radius". For any stack handling user data, health records, or financial information. Output labels law-sourced figures (exact) vs heuristic estimates (planning only). Does not replace legal counsel.Other plugins' skills for the same job