GitHub Secret Scanning API is one of 129 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.
This API exposes 6 JSON Schema definitions.
Tagged areas include Secret Scanning and Security. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, an API reference, and 6 JSON Schemas.
This API exposes
18 operations
across 12 paths,
and defines 67 schemas.
It is described by OpenAPI 3.2.0, at version 1.1.4.
Requests are made against 2 base URLs: https://api.github.com, {protocol}://{hostname}/api/v3.
The identity and technical contract details declared by the specification.
secret-scanning-alert-assignee
stringnull
The username of the user to assign to the alert. Set to null to unassign the alert.
basic-error
object
Basic Error
4 properties
secret-scanning-scan-history
object
5 properties
secret-scanning-custom-pattern
object
A custom pattern for secret scanning.
13 properties
6 required
secret-scanning-alert-resolution
stringnull
Required when the state is resolved. The reason for resolving the alert.
secret-scanning-location-commit
object
Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.
10 properties
9 required
secret-scanning-push-protection-bypass-placeholder-id
string
The ID of the push protection bypass placeholder. This value is returned on any push protected routes.
secret-scanning-location-issue-title
object
Represents an 'issuetitle' secret scanning location type. This location type shows that a secret was detected in the title of an issue.
2 properties
1 required
secret-scanning-location-issue-body
object
Represents an 'issuebody' secret scanning location type. This location type shows that a secret was detected in the body of an issue.
2 properties
1 required
secret-scanning-custom-pattern-to-update
object
Fields to update on a custom pattern. At least one updatable field (pattern, startdelimiter, enddelimiter, mustmatch, or mustnotmatch) must also be provided. O…
6 properties
1 required
secret-scanning-alert-with-metadata
object
34 properties
secret-scanning-first-detected-location
Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request.
secret-scanning-scan
object
Information on a single scan performed by secret scanning on the repository
4 properties
alert-number
integer
The security alert number.
secret-scanning-custom-pattern-to-create
object
A custom pattern to create in a bulk operation.
6 properties
2 required
secret-scanning-location-pull-request-comment
object
Represents a 'pullrequestcomment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.
2 properties
1 required
secret-scanning-location-pull-request-body
object
Represents a 'pullrequestbody' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.
2 properties
1 required
alert-created-at
string
The time that the alert was created in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
alert-updated-at
string
The time that the alert was last updated in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
secret-scanning-location-pull-request-review
object
Represents a 'pullrequestreview' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.
2 properties
1 required
simple-repository
object
A GitHub repository.
46 properties
46 required
secret-scanning-custom-pattern-validation-error
object
A validation error for a custom pattern in a batch operation.
2 properties
secret-scanning-location-discussion-title
object
Represents a 'discussiontitle' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.
1 property
1 required
alert-url
string
The REST API URL of the alert resource.
secret-scanning-location-issue-comment
object
Represents an 'issuecomment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.
2 properties
1 required
secret-scanning-location-pull-request-title
object
Represents a 'pullrequesttitle' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.
2 properties
1 required
validation-error
object
Validation Error
3 properties
2 required
secret-scanning-location-discussion-body
object
Represents a 'discussionbody' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.
1 property
1 required
secret-scanning-alert-resolution-comment
stringnull
An optional comment when closing or reopening an alert. Cannot be updated or deleted.
secret-scanning-pattern-override
object
12 properties
scim-error
object
Scim Error
6 properties
organization-secret-scanning-alert
object
34 properties
simple-user
object
A GitHub user.
22 properties
18 required
secret-scanning-alert
object
33 properties
secret-scanning-push-protection-bypass-reason
string
The reason for bypassing push protection.
secret-scanning-push-protection-bypass
object
3 properties
secret-scanning-custom-pattern-to-delete
object
A custom pattern to delete in a bulk operation.
2 properties
1 required
secret-scanning-location
object
2 properties
secret-scanning-alert-state
string
Sets the state of the secret scanning alert. You must provide resolution when you set the state to resolved.
alert-html-url
string
The GitHub URL of the alert resource.
secret-scanning-location-discussion-comment
object
Represents a 'discussioncomment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.
1 property
1 required
secret-scanning-location-pull-request-review-comment
object
Represents a 'pullrequestreviewcomment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull reques…
2 properties
1 required
secret-scanning-row-version
stringnull
The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's upd…
secret-scanning-alert-metadata
array
A list of metadata key/value pairs associated with the secret scanning alert.
secret-scanning-pattern-configuration
object
A collection of secret scanning patterns and their settings related to push protection.
3 properties
secret-scanning-location-wiki-commit
object
Represents a 'wikicommit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki.
9 properties
9 required
secret-scanning-location-issue-comment_2
object
Represents an 'issuecomment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue.
1 property
1 required
secret-scanning-location-pull-request-title_2
object
Represents a 'pullrequesttitle' secret scanning location type. This location type shows that a secret was detected in the title of a pull request.
1 property
1 required
basic-error_2
object
Basic Error
4 properties
secret-scanning-location-discussion-body_2
object
Represents a 'discussionbody' secret scanning location type. This location type shows that a secret was detected in the body of a discussion.
1 property
1 required
secret-scanning-location-commit_2
object
Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository.
9 properties
9 required
secret-scanning-location-discussion-comment_2
object
Represents a 'discussioncomment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion.
1 property
1 required
secret-scanning-alert-resolution-comment_2
stringnull
An optional comment when closing an alert. Cannot be updated or deleted. Must be null when changing state to open.
secret-scanning-location-pull-request-body_2
object
Represents a 'pullrequestbody' secret scanning location type. This location type shows that a secret was detected in the body of a pull request.
1 property
1 required
secret-scanning-location-pull-request-comment_2
object
Represents a 'pullrequestcomment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request.
1 property
1 required
secret-scanning-location-issue-title_2
object
Represents an 'issuetitle' secret scanning location type. This location type shows that a secret was detected in the title of an issue.
1 property
1 required
secret-scanning-location-issue-body_2
object
Represents an 'issuebody' secret scanning location type. This location type shows that a secret was detected in the body of an issue.
1 property
1 required
nullable-alert-updated-at
stringnull
The time that the alert was last updated in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
secret-scanning-location-pull-request-review_2
object
Represents a 'pullrequestreview' secret scanning location type. This location type shows that a secret was detected in a review on a pull request.
1 property
1 required
nullable-simple-user
objectnull
A GitHub user.
21 properties
18 required
secret-scanning-location-pull-request-review-comment_2
object
Represents a 'pullrequestreviewcomment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull reques…
1 property
1 required
organization-secret-scanning-alert_2
object
18 properties
simple-user_2
object
A GitHub user.
21 properties
18 required
secret-scanning-alert_2
object
17 properties
simple-repository_2
object
A GitHub repository.
46 properties
46 required
secret-scanning-location-discussion-title_2
object
Represents a 'discussiontitle' secret scanning location type. This location type shows that a secret was detected in the title of a discussion.
1 property
1 required
secret-scanning-location_2
object
2 properties
2 required
The full machine-readable OpenAPI contract behind this narrative.
Other APIs GitHub publishes across the network.