SECOPS

GitHub Secret-Scanning Alert to Owner Rotation

When GitHub secret scanning flags a leaked credential in a repo, this workflow identifies the owning service from CODEOWNERS, opens a tracking issue.

CategorySecOps
Enginesim
Difficultyintermediate
Triggerwebhook
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitHub secret-scanning alert webhookGitHubGitHub
  • LogicDrop resolved or test-token alerts
  • ActionResolve owning team via CODEOWNERSGitHubGitHub
  • ActionOpen tracking issue for owning teamGitHubGitHub
  • ActionPage owning team's on-callPagerDutyPagerDuty
  • OutputPost triage summary to security channelSlack

What it does

Turns a raw GitHub secret-scanning alert into an owned, trackable rotation task. It maps the leaked secret to the team that owns the affected path, creates an issue with the exact file and commit, and escalates to that team's on-call so the credential is rotated before it's abused.

When to use it

Use it when your org has GitHub Advanced Security secret scanning enabled and you want every alert to land on a named owner instead of dying in a security inbox. Ideal for teams with clear CODEOWNERS coverage.

How it works

  1. 1A GitHub secret-scanning alert webhook fires with the secret type, repo, and file path.
  2. 2The flow filters out resolved or test-token alerts so only live, exploitable secrets continue.
  3. 3It reads CODEOWNERS for the leaked file path to resolve the owning team and service.
  4. 4It opens a GitHub issue tagged to that team, embedding the commit SHA, file, and secret type.
  5. 5It pages the resolved team's on-call rotation in PagerDuty with the issue link.
  6. 6It posts a triage summary to the security Slack channel with the owner and rotation deadline.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Connect PagerDutyIncidents, on-call, escalations.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  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.