SECOPS

Emergency Rotation When a Secret Leaks to a Public Repo

When a secret is detected in a public or newly-public repository, it escalates as a critical incident: rotates the credential, force-pushes a history scrub, opens a PagerDuty page.

CategorySecOps
Enginesim
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerSecret-scanning alert webhook receivedGitHubGitHub
  • LogicFilter: repo is public or newly public
  • ActionRotate credential and scrub git historyShell
  • ActionOpen critical PagerDuty incidentPagerDutyPagerDuty
  • OutputCreate Zoom war room and share join linkZoomZoom

What it does

Treats a public-repo leak as the worst-case scenario it is. A secret in a private repo is bad; one in a public repo is being scraped within minutes. This workflow fast-paths the highest-urgency response: rotate the credential, trigger a git history rewrite to remove the secret from the commit log, and immediately convene humans rather than just logging a ticket.

When to use it

Use it for the small set of repos that are public or can flip to public, where exposure time is measured in minutes and you want a coordinated emergency response, not a queued task.

How it works

  1. 1A secret-scanning alert webhook fires and includes repo visibility.
  2. 2A filter confirms the repo is public or recently made public; private-repo findings route elsewhere.
  3. 3A shell step rotates the credential and runs a history-scrub force push to purge the secret.
  4. 4PagerDuty opens a critical incident for on-call security.
  5. 5A Zoom war-room meeting is created and its join link is posted as the incident output.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Connect ShellRun sandboxed commands inside the workspace.
  3. 3
    Connect PagerDutyIncidents, on-call, escalations.
  4. 4
    Connect ZoomMeetings, recordings, transcripts.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    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.