SECOPS

GitHub Push Secret Scanner with Auto-Quarantine and Rotation

Scans every push for committed credentials, force-quarantines the offending commit to a locked branch, fires a rotation webhook for the exposed key.

CategorySecOps
Enginesim
Difficultyintermediate
Triggerwebhook
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitHub push event receivedGitHubGitHub
  • LogicScan added lines for secret signatures and high entropy
  • ActionMove offending commit to locked quarantine branchGitHubGitHub
  • ActionFire rotation webhook for exposed credentialHTTP webhook
  • OutputOpen Linear evidence ticket with redacted matchLinearLinear

What it does

When a developer pushes to GitHub, this workflow inspects the diff for live secrets (API tokens, private keys, connection strings). If it finds one, it isolates the bad commit on a `quarantine/*` branch, kicks off credential rotation through your secrets webhook, and files a Linear ticket so the incident has a paper trail.

When to use it

Run this on any repo where a leaked key reaches production fast. It is the front-line control for teams that can't wait for nightly scans and need the secret invalidated within minutes of the push.

How it works

  1. 1A GitHub push event fires the workflow with the commit SHAs and diff.
  2. 2A logic step pattern-matches the added lines against known secret signatures and entropy thresholds.
  3. 3If clean, the run ends. If a secret is found, an action creates a locked `quarantine/<sha>` branch holding the commit out of the default branch's reach.
  4. 4An HTTP webhook call hands the secret fingerprint to your rotation service to revoke and reissue the key.
  5. 5A Linear issue is opened with the file path, redacted match, and rotation status as the evidence record.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Connect HTTP webhookTrigger any URL on agent actions.
  3. 3
    Connect LinearIssues, projects, cycles, triage.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.