Run token-hunt against your repository and upload the findings to GitHub code scanning.
token-hunt catches secrets at chat time — Claude Code hooks scanning prompts, bash, and file reads before anything leaves the machine. This action runs the same scanner over a checked-out tree in CI, so what the hooks miss, scheduled scans still catch. Output is SARIF 2.1.0; results appear under the repo's Security tab with stable fingerprints, so re-runs update existing alerts instead of opening new ones.
name: token-hunt
on:
push:
branches: [main]
schedule:
- cron: "17 6 * * 1"
permissions:
contents: read
security-events: write
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tokenhunt/[email protected]path (optional, default .) selects the work tree to scan. Tracked text files are scanned; binary files are skipped.
The wrapper (this action) is MIT. token-hunt itself is BUSL — same scanner, different terms for embedding it in a product of your own.
tokenhunt.dev