Sign in
Explore
Add-ons · HookEveryday codingTesting & SecuritySecrets & privacyReviewedRuns shell commands

secrets-scanner/hooks.json

Scans files modified during a Copilot coding agent session for leaked secrets, credentials and sensitive data.

Kind
Hook
Works with
GitHub Copilot
Source
Awesome Copilot @ d85f762d6e52
Path
hooks/secrets-scanner/hooks.json
Jobs
Guardrails
Topics
Secrets & privacy

Credit

Made by
github
Original
github.com/github/awesome-copilot/blob/d85f762d6e521abf5fe167…
License
MIT

Listed by Skill Manifest; not made by us.

InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
Adds
  • Entries under `hooks` in .claude/settings.json
  • Hook on sessionEnd
Runs scripts
Yes
  • Marked in the catalog record
Uses the network
None found
Needs secrets
None found
Source revision
d85f762d6e52
Licence
MIT
Last activity
25 Nov 2026
Source changed after the scan
Yes
  • Last push 25 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

{
  "version": 1,
  "hooks": {
    "sessionEnd": [
      {
        "type": "command",
        "bash": ".github/hooks/secrets-scanner/scan-secrets.sh",
        "cwd": ".",
        "env": {
          "SCAN_MODE": "warn",
          "SCAN_SCOPE": "diff"
        },
        "timeoutSec": 30
      }
    ]
  }
}