SECOPS

GitHub Push Secret Scan to Rotate and Page

When GitHub secret scanning flags a leaked credential in a push, this workflow classifies the secret type, revokes it at the provider, opens a PagerDuty incident.

CategorySecOps
Enginesim
Difficultyintermediate
Triggerwebhook
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitHub secret scanning alert webhookGitHubGitHub
  • LogicClassify secret type and severity
  • ActionRevoke or rotate credential at providerCloudflareCloudflare
  • ActionOpen PagerDuty incident for on-callPagerDutyPagerDuty
  • OutputPost blast-radius summary to Slack threadSlack

What it does

Turns a GitHub secret scanning alert into a closed-loop response: it identifies what kind of credential leaked, revokes or rotates it at the source, and pages the on-call so a human confirms the kill within minutes instead of hours.

When to use it

Use it when your repos have GitHub secret scanning (or push protection bypass) enabled and you need a guaranteed, auditable reaction every time a key lands in git history — not a Slack message someone might miss overnight.

How it works

  1. 1A GitHub `secret_scanning_alert` webhook fires with the detected secret type, repo, and commit.
  2. 2A logic step maps the secret type to its owning provider and severity (e.g. Cloudflare token, Stripe key, generic high-entropy).
  3. 3An action calls the matching provider API to revoke or roll the credential.
  4. 4A PagerDuty incident is opened, tagged with the repo and commit SHA, and assigned to the security on-call.
  5. 5The workflow outputs a Slack thread summarizing the secret, who pushed it, the revocation result, and the linked incident.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Connect CloudflareWorkers, Pages, R2, KV — the edge stack.
  3. 3
    Connect PagerDutyIncidents, on-call, escalations.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  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.