How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Enterprise Secret Scanning API

Retrieve secret scanning alerts from a repository.

GitHub Enterprise Secret Scanning API is one of 58 APIs that GitHub Enterprise publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 8 JSON Schema definitions.

Tagged areas include Secret Scanning. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, rate-limit docs, authentication docs, and 8 JSON Schemas.

This API exposes 38 operations across 26 paths, and defines 59 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against a single base URL, https://api.github.com.

38 operations 26 paths 59 schemas 4 DELETE21 GET9 PATCH4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Contact
License
Terms of Service
Resource Areas
1

Paths & Operations 38

Across 26 paths, the API surfaces 38 operations — 4 DELETE, 21 GET, 9 PATCH, 4 POST. Each is listed below with its method, path, parameters, and response codes.

secret-scanning 38

Retrieve secret scanning alerts from a repository.

GET
/enterprises/{enterprise}/bypass-requests/secret-scanning
List bypass requests for secret scanning for an enterprise
secret-scanning/list-enterprise-bypass-requests 8 params → 200404500
GET
/enterprises/{enterprise}/dismissal-requests/secret-scanning
List alert dismissal requests for secret scanning for an enterprise
secret-scanning/list-enterprise-dismissal-requests 8 params → 200404403500
GET
/enterprises/{enterprise}/secret-scanning/alerts
List secret scanning alerts for an enterprise
secret-scanning/list-alerts-for-enterprise 20 params → 200404503
GET
/enterprises/{enterprise}/secret-scanning/custom-patterns
List enterprise custom patterns
secret-scanning/list-enterprise-custom-patterns 7 params → 200403404
POST
/enterprises/{enterprise}/secret-scanning/custom-patterns
Bulk create enterprise custom patterns
secret-scanning/bulk-create-enterprise-custom-patterns 1 param body → 201400403404422
DELETE
/enterprises/{enterprise}/secret-scanning/custom-patterns
Bulk delete enterprise custom patterns
secret-scanning/bulk-delete-enterprise-custom-patterns 1 param body → 204400403404412
PATCH
/enterprises/{enterprise}/secret-scanning/custom-patterns/{pattern_id}
Update an enterprise custom pattern
secret-scanning/update-enterprise-custom-pattern 2 params body → 200400403404412422
GET
/enterprises/{enterprise}/secret-scanning/pattern-configurations
List enterprise pattern configurations
secret-scanning/list-enterprise-pattern-configs 1 param → 200403404
PATCH
/enterprises/{enterprise}/secret-scanning/pattern-configurations
Update enterprise pattern configurations
secret-scanning/update-enterprise-pattern-configs 1 param body → 200400403404409422
GET
/enterprises/{enterprise}/secret-scanning/public-monitoring-alerts
List public monitoring alerts for an enterprise
secret-scanning/list-public-monitoring-alerts-for-enterprise 10 params → 200403404422503
GET
/enterprises/{enterprise}/secret-scanning/public-monitoring-alerts/{alert_number}
Get a public monitoring alert for an enterprise
secret-scanning/get-public-monitoring-alert-for-enterprise 2 params → 200400403404500503
PATCH
/enterprises/{enterprise}/secret-scanning/public-monitoring-alerts/{alert_number}
Update a public monitoring alert for an enterprise
secret-scanning/update-public-monitoring-alert-for-enterprise 2 params body → 200400403404422500503
GET
/orgs/{org}/bypass-requests/secret-scanning
List bypass requests for secret scanning for an org
secret-scanning/list-org-bypass-requests 8 params → 200404500
GET
/orgs/{org}/dismissal-requests/secret-scanning
List alert dismissal requests for secret scanning for an org
secret-scanning/list-org-dismissal-requests 8 params → 200404403500
GET
/orgs/{org}/secret-scanning/alerts
List secret scanning alerts for an organization
secret-scanning/list-alerts-for-org 21 params → 200404503
GET
/orgs/{org}/secret-scanning/custom-patterns
List organization custom patterns
secret-scanning/list-org-custom-patterns 7 params → 200403404
POST
/orgs/{org}/secret-scanning/custom-patterns
Bulk create organization custom patterns
secret-scanning/bulk-create-org-custom-patterns 1 param body → 201400403404422
DELETE
/orgs/{org}/secret-scanning/custom-patterns
Bulk delete organization custom patterns
secret-scanning/bulk-delete-org-custom-patterns 1 param body → 204400403404412
PATCH
/orgs/{org}/secret-scanning/custom-patterns/{pattern_id}
Update an organization custom pattern
secret-scanning/update-org-custom-pattern 2 params body → 200400403404412422
GET
/orgs/{org}/secret-scanning/pattern-configurations
List organization pattern configurations
secret-scanning/list-org-pattern-configs 1 param → 200403404
PATCH
/orgs/{org}/secret-scanning/pattern-configurations
Update organization pattern configurations
secret-scanning/update-org-pattern-configs 1 param body → 200400403404409422
GET
/repos/{owner}/{repo}/bypass-requests/secret-scanning
List bypass requests for secret scanning for a repository
secret-scanning/list-repo-bypass-requests 8 params → 200404403500
GET
/repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}
Get a bypass request for secret scanning
secret-scanning/get-bypass-request 3 params → 200404403500
PATCH
/repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}
Review a bypass request for secret scanning
secret-scanning/review-bypass-request 3 params body → 200404403422500
DELETE
/repos/{owner}/{repo}/bypass-responses/secret-scanning/{bypass_response_id}
Dismiss a response on a bypass request for secret scanning
secret-scanning/dismiss-bypass-response 3 params → 204404403422500
GET
/repos/{owner}/{repo}/dismissal-requests/secret-scanning
List alert dismissal requests for secret scanning for a repository
secret-scanning/list-repo-dismissal-requests 8 params → 200404403500
GET
/repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_number}
Get an alert dismissal request for secret scanning
secret-scanning/get-dismissal-request 3 params → 200404403500
PATCH
/repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_number}
Review an alert dismissal request for secret scanning
secret-scanning/review-dismissal-request 3 params body → 200404403422500
GET
/repos/{owner}/{repo}/secret-scanning/alerts
List secret scanning alerts for a repository
secret-scanning/list-alerts-for-repo 22 params → 200404503
GET
/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}
Get a secret scanning alert
secret-scanning/get-alert 4 params → 200304404503
PATCH
/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}
Update a secret scanning alert
secret-scanning/update-alert 3 params body → 200400403404422503
GET
/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations
List locations for a secret scanning alert
secret-scanning/list-locations-for-alert 5 params → 200404503
GET
/repos/{owner}/{repo}/secret-scanning/custom-patterns
List repository custom patterns
secret-scanning/list-repo-custom-patterns 8 params → 200403404
POST
/repos/{owner}/{repo}/secret-scanning/custom-patterns
Bulk create repository custom patterns
secret-scanning/bulk-create-repo-custom-patterns 2 params body → 201400403404422
DELETE
/repos/{owner}/{repo}/secret-scanning/custom-patterns
Bulk delete repository custom patterns
secret-scanning/bulk-delete-repo-custom-patterns 2 params body → 204400403404412
PATCH
/repos/{owner}/{repo}/secret-scanning/custom-patterns/{pattern_id}
Update a repository custom pattern
secret-scanning/update-repo-custom-pattern 3 params body → 200400403404412422
POST
/repos/{owner}/{repo}/secret-scanning/push-protection-bypasses
Create a push protection bypass
secret-scanning/create-push-protection-bypass 2 params body → 200403404422503
GET
/repos/{owner}/{repo}/secret-scanning/scan-history
Get secret scanning scan history for a repository
secret-scanning/get-scan-history 2 params → 404503200

Schemas 59

The contract defines 59 schemas that model the data the API accepts and returns. The most detailed are nullable-simple-repository (46 properties), simple-repository (46 properties), organization-secret-scanning-alert (34 properties), secret-scanning-alert-with-metadata (34 properties). Each schema is shown below with its type and property counts.

public-monitoring-alert-location
object
Delivered source location details for a public monitoring alert.
10 properties
secret-scanning-pattern-override
object
12 properties
secret-scanning-alert-assignee
stringnull
The username of the user to assign to the alert. Set to null to unassign the alert.
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-dismissal-request
object
A dismissal request made by a user asking to close a secret scanning alert in this repository.
15 properties
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
nullable-base-gist
objectnull
Base Gist
21 properties 16 required
secret-scanning-custom-pattern-to-create
object
A custom pattern to create in a bulk operation.
6 properties 2 required
secret-scanning-scan-history
object
5 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
nullable-alert-updated-at
stringnull
The time that the alert was last updated in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
secret-scanning-custom-pattern-validation-error
object
A validation error for a custom pattern in a batch operation.
2 properties
secret-scanning-bypass-request
object
A bypass request made by a user asking to be exempted from push protection in this repository.
15 properties
alert-url
string
The REST API URL of the alert resource.
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
alert-html-url
string
The GitHub URL of the alert resource.
secret-scanning-scan
object
Information on a single scan performed by secret scanning on the repository
4 properties
simple-user
object
A GitHub user.
22 properties 18 required
secret-scanning-alert-resolution
stringnull
Required when the state is resolved. The reason for resolving the alert.
secret-scanning-alert-with-metadata
object
34 properties
basic-error
object
Basic Error
4 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-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-state
string
Sets the state of the secret scanning alert. You must provide resolution when you set the state to resolved.
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
secret-scanning-location-actions-log
object
Represents an 'actionslog' secret scanning location type. The path identifies the workflow definition, while line and column positions identify the secret in t…
5 properties 5 required
nullable-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, or Actions job log.
secret-scanning-pattern-configuration
object
A collection of secret scanning patterns and their settings related to push protection.
3 properties
bypass-response
object
A response made by a delegated bypasser to a bypass request.
4 properties
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
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
public-monitoring-secret-author
object
Delivered public details for the user attributed as the secret author.
3 properties 1 required
secret-scanning-location
object
2 properties
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
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-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…
validation-error
object
Validation Error
3 properties 2 required
alert-number
integer
The security alert number.
organization-secret-scanning-alert
object
34 properties
secret-scanning-custom-pattern-to-delete
object
A custom pattern to delete in a bulk operation.
2 properties 1 required
public-monitoring-alert-resolution
stringnull
Required when the state is resolved. The reason for resolving the alert.
nullable-simple-repository
objectnull
A GitHub repository.
46 properties 46 required
public-monitoring-repository
object
Delivered details for the public repository where the secret was found.
4 properties 3 required
simple-repository
object
A GitHub repository.
46 properties 46 required
scim-error
object
Scim Error
6 properties
secret-scanning-custom-pattern
object
A custom pattern for secret scanning.
13 properties 6 required
public-monitoring-alert
object
15 properties 2 required
public-monitoring-alert-attribution-method
string
The method used to attribute the alert to the enterprise.
secret-scanning-alert
object
33 properties
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
alert-created-at
string
The time that the alert was created in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
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-alert-resolution-comment
stringnull
An optional comment when closing or reopening an alert. Cannot be updated or deleted.
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
nullable-simple-user
objectnull
A GitHub user.
22 properties 18 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-alert-metadata
array
A list of metadata key/value pairs associated with the secret scanning alert.
secret-scanning-push-protection-bypass-reason
string
The reason for bypassing push protection.
secret-scanning-push-protection-bypass
object
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-enterprise-secret-scanning-api-openapi.yml Raw ↑

Other APIs GitHub Enterprise publishes across the network.

GitHub Enterprise Cloud GraphQL API
GitHub MCP Server
GitHub Enterprise Actions API
GitHub Enterprise Code Scanning API
GitHub Enterprise Admin API
GitHub Enterprise Issues API
GitHub Enterprise SCIM API
GitHub Enterprise Users API
GitHub Enterprise Activity API
GitHub Enterprise Agent Automations API
GitHub Enterprise Agent Merge API
GitHub Enterprise Agent Tasks API
Where this information came from

This is an independent, third-party profile of GitHub Enterprise Secret Scanning API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.