GitHub Enterprise Secret Scanning API

Retrieve secret scanning alerts from a repository.

Operations 38

GET /enterprises/{enterprise}/bypass-requests/secret-scanning List bypass requests for secret scanning for an enterprise #
GET /enterprises/{enterprise}/dismissal-requests/secret-scanning List alert dismissal requests for secret scanning for an enterprise #
GET /enterprises/{enterprise}/secret-scanning/alerts List secret scanning alerts for an enterprise #
GET /enterprises/{enterprise}/secret-scanning/custom-patterns List enterprise custom patterns #
POST /enterprises/{enterprise}/secret-scanning/custom-patterns Bulk create enterprise custom patterns #
DELETE /enterprises/{enterprise}/secret-scanning/custom-patterns Bulk delete enterprise custom patterns #
PATCH /enterprises/{enterprise}/secret-scanning/custom-patterns/{pattern_id} Update an enterprise custom pattern #
GET /enterprises/{enterprise}/secret-scanning/pattern-configurations List enterprise pattern configurations #
PATCH /enterprises/{enterprise}/secret-scanning/pattern-configurations Update enterprise pattern configurations #
GET /enterprises/{enterprise}/secret-scanning/public-monitoring-alerts List public monitoring alerts for an enterprise #
GET /enterprises/{enterprise}/secret-scanning/public-monitoring-alerts/{alert_number} Get a public monitoring alert for an enterprise #
PATCH /enterprises/{enterprise}/secret-scanning/public-monitoring-alerts/{alert_number} Update a public monitoring alert for an enterprise #
GET /orgs/{org}/bypass-requests/secret-scanning List bypass requests for secret scanning for an org #
GET /orgs/{org}/dismissal-requests/secret-scanning List alert dismissal requests for secret scanning for an org #
GET /orgs/{org}/secret-scanning/alerts List secret scanning alerts for an organization #
GET /orgs/{org}/secret-scanning/custom-patterns List organization custom patterns #
POST /orgs/{org}/secret-scanning/custom-patterns Bulk create organization custom patterns #
DELETE /orgs/{org}/secret-scanning/custom-patterns Bulk delete organization custom patterns #
PATCH /orgs/{org}/secret-scanning/custom-patterns/{pattern_id} Update an organization custom pattern #
GET /orgs/{org}/secret-scanning/pattern-configurations List organization pattern configurations #
PATCH /orgs/{org}/secret-scanning/pattern-configurations Update organization pattern configurations #
GET /repos/{owner}/{repo}/bypass-requests/secret-scanning List bypass requests for secret scanning for a repository #
GET /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number} Get a bypass request for secret scanning #
PATCH /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number} Review a bypass request for secret scanning #
DELETE /repos/{owner}/{repo}/bypass-responses/secret-scanning/{bypass_response_id} Dismiss a response on a bypass request for secret scanning #
GET /repos/{owner}/{repo}/dismissal-requests/secret-scanning List alert dismissal requests for secret scanning for a repository #
GET /repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_number} Get an alert dismissal request for secret scanning #
PATCH /repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_number} Review an alert dismissal request for secret scanning #
GET /repos/{owner}/{repo}/secret-scanning/alerts List secret scanning alerts for a repository #
GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number} Get a secret scanning alert #
PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number} Update a secret scanning alert #
GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations List locations for a secret scanning alert #
GET /repos/{owner}/{repo}/secret-scanning/custom-patterns List repository custom patterns #
POST /repos/{owner}/{repo}/secret-scanning/custom-patterns Bulk create repository custom patterns #
DELETE /repos/{owner}/{repo}/secret-scanning/custom-patterns Bulk delete repository custom patterns #
PATCH /repos/{owner}/{repo}/secret-scanning/custom-patterns/{pattern_id} Update a repository custom pattern #
POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses Create a push protection bypass #
GET /repos/{owner}/{repo}/secret-scanning/scan-history Get secret scanning scan history for a repository #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/github-enterprise:github-enterprise-secret-scanning-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

github-enterprise-secret-scanning-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Github Enterprise Secret Scanning API
  version: 1.1.4
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  x-github-plan: ghec
  description: 'Operations tagged secret-scanning across 2 of this provider''s published API definitions: github-enterprise-ghec-openapi.json, github-enterprise-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.github.com
tags:


# --- truncated at 32 KB (241 KB total) ---
# Full source: https://artifacts.apis.io/github-enterprise/openapi/github-enterprise-secret-scanning-api-openapi.yml