Alcatraz Action flags PII in CI.
A GitHub Action that scans PR diffs, log files and issue text for PII. It runs entirely in the runner: no service, no network calls, no models. 45 entity types across 12 countries, checksum validated.
name: PII scan
on: pull_request
permissions:
contents: read
pull-requests: write # for the report comment
jobs:
diff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hoophq/alcatraz-action@v1
Flagged in the wild.
A webhook step logs a response body with a card, an email and a CPF in it. The action flags all three, scores them and reports them masked.
##[debug]Evaluating condition for step: 'Notify webhook'
##[debug]Response body: {"customer":"Jane Doe","card":"4532 0151 1283 0366","email":"jane.doe@example.com"}
##[debug]cpf=536.904.399-06
##[debug]Step result: success
Alcatraz PII scan
3 findings · values masked · check fails
CREDIT_CARD1.0045***************66· Luhn checksumCPF1.0053**********06· Checksum validationEMAIL_ADDRESS0.85ja****************om· Pattern, lifted by the word “email”
The same report lands as inline annotations, a sticky PR comment and the job’s step summary.
One step in any job.
The diff comes from the GitHub API, so no fetch-depth: 0. The comment mode needs no checkout at all.
Drop it into your workflow
One step in any job. Scans PR diffs by default; point it at log files or issue and comment text with mode.
uses: hoophq/alcatraz-action@v1Alcatraz scans the run
Pattern recognizers plus checksum validation, locally in the runner. Powered by Alcatraz, the hoop.labs PII detection library.
mode: diff | files | commentFlagged findings, masked
Inline annotations, a sticky PR comment with masked values and a step summary. The check fails until findings are removed or allow-listed.
fail-on-findings: true
Built for regulated pipelines.
Every input has a default. Tune the threshold for precision or recall, or allow-list the fixtures your tests seed.
Three scan modes
PR diffs, arbitrary files, and issue or comment text. Capture your test output to a log file and scan it for leaked PII in the same job.
No external API
Runs on Alcatraz locally in the runner. No service, no network calls, no models, and nothing sent to a third-party PII detection service.
Compliance-ready
Findings are reported with masked values, never re-published. Built for teams accountable to SOC 2, HIPAA and PCI audits of their CI/CD pipeline.
More from hoop Labs.
Each tool solves one problem, runs locally and needs no signup to try.
- PII InvadersBrowser game
- MCP ProxyGo binary + library
- Implementation Savings CalculatorWeb tool
- WardenWeb tool + CLI
- BlueprintCLI
- Hoop Plugin for ClaudePlugin
- Alcatraz ActionGitHub Action
- FenceClaude Code hook
- Credential CloakLocal proxy
- JuliusCLI + proxy
- AlcatrazGo library
- AI Risk SummaryCLI
- AI ROI CalculatorWeb tool