Skip to content

[webhooks] Wrong example payload for security_and_analysis event #18668

Closed
@wolfy1339

Description

@wolfy1339

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security_and_analysis

What part(s) of the article would you like to see updated?

The payload example for the GitHub.com version of the docs has a payload for GHES.

Normally payloads for GitHub.com don't have an enterprise key, and there are other keys in the repository key in the payload that aren't present in the other example payloads.

Specifically the following are the keys in the repository property that need clarification:

  • repository[network_count] is new and isn't seen on other payloads for GitHub.com webhooks
  • repository[subscribers_count] is new and isn't seen on other payloads for GitHub.com webhooks
  • repository[organization] is an object while in other payloads it is a string

Additional information

I discovered this discrepancy while creating a schema for this new event over in octokit/webhooks#641

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamwaiting for reviewIssue/PR is waiting for a writer's reviewwebhooksContent related to webhooks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions