Skip to content

v2026.3.10.1

Choose a tag to compare

@github-actions github-actions released this 03 Nov 07:35
08c435a

This release syncs the webhook models with the latest GitHub OpenAPI descriptions and adds the secret_scanning_public_monitoring_alert event family. Upgrading needs code changes if you reference the enum fallback constant UNKNOWN or one of the renamed types below.

⚠️ Breaking changes

  • Enum fallback renamed: the fallback constant of 175 webhook enums changed from UNKNOWN (wire value "unknown") to UNRECOGNIZED (wire value "unrecognized"), for example GitHubWebhookCreateRefType and GitHubWebhookProjectsV2ItemContentType. Migrate GitHubWebhookCreateRefType.UNKNOWN → GitHubWebhookCreateRefType.UNRECOGNIZED in switch branches and comparisons. fromWire returns UNRECOGNIZED for a value the library does not know.
  • Exemption request metadata renamed: GitHubWebhookSecretScanningPushProtectionExemptionRequestMetadata → GitHubWebhookExemptionRequestMetadata and its ...MetadataReason enum → GitHubWebhookExemptionRequestMetadataReason. This changes the type of metadata in GitHubWebhookExemptionRequest.
  • Secret scanning alert validity renamed: GitHubWebhookSecretScanningAlertCreatedAlertValidity → GitHubWebhookPublicMonitoringAlertWebhookValidity. This changes the type of validity in GitHubWebhookSecretScanningAlertCreatedAlert.
  • Label type replaced: GitHubWebhookIssuesEditedLabel is removed and GitHubWebhookPullRequestLabeledLabel takes its place, with the same components. It is the type of label or labels in the discussion, issue labeled, unlabeled and edited, label created, deleted, edited and unarchived, and pull request labeled and unlabeled events and their payloads (for example GitHubWebhookDiscussionLabeledEvent, GitHubWebhookLabelCreatedEvent, GitHubWebhookPullRequestLabeledPullRequest).
  • Issue labels retyped: labels in GitHubWebhookIssue, GitHubWebhookIssuesClosedIssue, GitHubWebhookIssuesEditedIssue, GitHubWebhookIssuesPinnedIssue and GitHubWebhookIssuesReopenedIssue changed from List<GitHubWebhookLabel> to List<GitHubWebhookPullRequestLabeledLabel>. Update code that reads these labels as GitHubWebhookLabel.
  • Rule parameter records gained components: GitHubWebhookFilePathRestrictionParameters and GitHubWebhookMaxFileSizeParameters gained a nullable ignoredFilePaths list, and GitHubWebhookPullRequestParameters gained a nullable requireExtraApprovalForUnattributedChanges. They are trailing components, so constructor calls need one more argument (null keeps the old behavior); code that only reads webhooks is not affected.
  • Transferred issue has its own type: the newIssue component of GitHubWebhookIssuesTransferredChanges changed from GitHubWebhookIssuesPinnedIssue to the new GitHubWebhookIssuesTransferredChangesNewIssue. Update variable and method signatures that use the old type.
  • New event type in the sealed GitHubWebhookEvent: GitHubWebhookSecretScanningPublicMonitoringAlertEvent is a new permitted subtype, so an exhaustive switch over GitHubWebhookEvent without a default branch no longer compiles. Add a case for it (see What's new).

✨ What's new

  • Secret scanning public monitoring alerts: the secret_scanning_public_monitoring_alert webhook is now parsed into GitHubWebhookSecretScanningPublicMonitoringAlertEvent, with one record per action (created, dismissed, reopened, validated) and GitHubWebhookSecretScanningPublicMonitoringAlertUnknownActionEvent for any other action. The alert is GitHubWebhookPublicMonitoringAlertWebhook, including where the secret was found. GHEC only. The new package ...webhook.secretscanningpublicmonitoringalert is exported and opened in module-info.
  • Dependabot reachability: GitHubWebhookDependabotAlertFixedAlert has a new reachability component (GitHubWebhookDependabotAlertFixedAlertReachability with a verdict and an optional reason). Because it is a new record component, its canonical constructor changed; this is a response record, so code that only reads webhooks is not affected.

Full Changelog: v2026.3.10.0...v2026.3.10.1