Secret Scanning Scan

This event occurs when secret scanning completes certain scans on a repository. For more information about secret scanning, see "About secret scanning."

Actions

ActionSent when
completedA secret scanning scan was completed.

Payload

Fields of the delivery for the first action above. Every action shares the event's core fields.

FieldTypeRequiredDescription
actionstringYes
typestringYesWhat type of scan was completed
sourcestringYesWhat type of content was scanned
started_atstringYesThe time that the alert was resolved in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
completed_atstringYesThe time that the alert was resolved in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
secret_typesarray<string>NoList of patterns that were updated. This will be empty for normal backfill scans or custom pattern updates
custom_pattern_namestringNoIf the scan was triggered by a custom pattern update, this will be the name of the pattern that was updated
custom_pattern_scopestringNoIf the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated
repositoryobjectNoThe repository on GitHub where the event occurred. Webhook payloads contain the repository property
enterpriseobjectNoAn enterprise on GitHub. Webhook payloads contain the enterprise property when the webhook is configured
installationobjectNoThe GitHub App installation. Webhook payloads contain the installation property when the event is configured
organizationobjectNoA GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an
senderobjectNoA GitHub user.
Subscribing

To subscribe to this event, a GitHub App must have at least read-level access for the "Secret scanning alerts" repository permission.