GitHub Enterprise Code Scanning API

The Code Scanning API from GitHub Enterprise — 1 operation(s) for code scanning.

Business capability
Vulnerability Management BC-620.40

Operations 30

GET /enterprises/{enterprise}/code-scanning/alerts List code scanning alerts for an enterprise #
GET /orgs/{org}/code-scanning/ai-scan Get the AI Scan setting for an organization #
PATCH /orgs/{org}/code-scanning/ai-scan Update the AI Scan setting for an organization #
GET /orgs/{org}/code-scanning/alerts List code scanning alerts for an organization #
GET /orgs/{org}/dismissal-requests/code-scanning List dismissal requests for code scanning alerts for an organization #
GET /repos/{owner}/{repo}/code-scanning/ai-scan Get AI Scan enablement for a repository #
PATCH /repos/{owner}/{repo}/code-scanning/ai-scan Update AI Scan enablement for a repository #
GET /repos/{owner}/{repo}/code-scanning/alerts List code scanning alerts for a repository #
GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number} Get a code scanning alert #
PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number} Update a code scanning alert #
GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix Get the status of an autofix for a code scanning alert #
POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix Create an autofix for a code scanning alert #
POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits Commit an autofix for a code scanning alert #
GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances List instances of a code scanning alert #
GET /repos/{owner}/{repo}/code-scanning/analyses List code scanning analyses for a repository #
GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id} Get a code scanning analysis for a repository #
DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id} Delete a code scanning analysis from a repository #
GET /repos/{owner}/{repo}/code-scanning/codeql/databases List CodeQL databases for a repository #
GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language} Get a CodeQL database for a repository #
DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language} Delete a CodeQL database #
POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses Create a CodeQL variant analysis #
GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id} Get the summary of a CodeQL variant analysis #
GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name} Get the analysis status of a repository in a CodeQL variant analysis #
GET /repos/{owner}/{repo}/code-scanning/default-setup Get a code scanning default setup configuration #
PATCH /repos/{owner}/{repo}/code-scanning/default-setup Update a code scanning default setup configuration #
POST /repos/{owner}/{repo}/code-scanning/sarifs Upload an analysis as SARIF data #
GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id} Get information about a SARIF upload #
GET /repos/{owner}/{repo}/dismissal-requests/code-scanning List dismissal requests for code scanning alerts for a repository #
GET /repos/{owner}/{repo}/dismissal-requests/code-scanning/{alert_number} Get a dismissal request for a code scanning alert for a repository #
PATCH /repos/{owner}/{repo}/dismissal-requests/code-scanning/{alert_number} Review a dismissal request for a code scanning alert for a repository #

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-code-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-code-scanning-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Github Enterprise Code 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 code-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 (230 KB total) ---
# Full source: https://artifacts.apis.io/github-enterprise/openapi/github-enterprise-code-scanning-api-openapi.yml