[detector]
id = "github-webhook-secret"
name = "GitHub Webhook Secret"
service = "github"
severity = "high"
keywords = ["GITHUB_WEBHOOK_SECRET", "github_webhook_secret", "webhook_secret", "X-Hub-Signature-256"]
[[detector.patterns]]
regex = "(?:GITHUB|github)[._-]?(?:WEBHOOK|webhook|HOOK|hook)[._-]?(?:SECRET|secret|TOKEN|token)[=:\\s\"'']+([a-zA-Z0-9_-]{20,100})"
description = "GitHub webhook secret with context anchor"
group = 1
[[detector.patterns]]
regex = "(?:gh|github)[._-]?webhook[_-]?secret[=:\\s\"'']+([a-zA-Z0-9_-]{20,100})"
description = "GitHub webhook secret with abbreviated context"
group = 1