Github API - Test Config

GET /orgs/{org}/code-scanning/alerts
orgs
code-scanning

Lists code scanning alerts for the default branch for all eligible repositories in an organization. Eligible repositories are repositories that are owned by organizations that you own or for which you are a security manager. For more information, see "Managing security managers in your organization."

To use this endpoint, you must be an owner or security manager for the organization, and you must use an access token with the repo scope or security_events scope.

For public repositories, you may instead use the public_repo scope.

GitHub Apps must have the security_events read permission to use this endpoint.
List code scanning alerts for an organization

Arguments
key org

org [scalar]

The organization name. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key tool-name

tool-name [scalar]

The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either tool_name or tool_guid, but not both.

API:
Github Open API
(version: 1.1.4)

key tool-guid

tool-guid [scalar]

The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either tool_guid or tool_name, but not both.

API:
Github Open API
(version: 1.1.4)

key pagination-before

pagination-before [scalar]

A cursor, as given in the Link header. If specified, the query only searches for results before this cursor.

API:
Github Open API
(version: 1.1.4)

key pagination-after

pagination-after [scalar]

A cursor, as given in the Link header. If specified, the query only searches for results after this cursor.

API:
Github Open API
(version: 1.1.4)

key page

page [scalar]

Page number of the results to fetch.

API:
Github Open API
(version: 1.1.4)

key per-page

per-page [scalar]

The number of results per page (max 100).

API:
Github Open API
(version: 1.1.4)

key direction

direction [scalar]

The direction to sort the results by.

API:
Github Open API
(version: 1.1.4)

state code-scanning-alert-state

code-scanning-alert-state [scalar]

State of a code scanning alert.

API:
Github Open API
(version: 1.1.4)

sort string

string [scalar]

The OpenAPI string type

API:
Github Open API
(version: 1.1.4)

severity code-scanning-alert-severity

code-scanning-alert-severity [scalar]

Severity of a code scanning alert.

API:
Github Open API
(version: 1.1.4)

Returns
200 application/json code-scanning-organization-alert-items []

code-scanning-organization-alert-items [object]

Attributes
created_at alert-created-at

dismissed_at alert-dismissed-at

dismissed_by nullable-simple-user

fixed_at alert-fixed-at

html_url alert-html-url

instances_url alert-instances-url

most_recent_instance code-scanning-alert-instance

number alert-number

repository simple-repository

updated_at alert-updated-at

url alert-url

API:
Github Open API
(version: 1.1.4)
404 not_found

not_found [scalar]

Resource not found

API:
Github Open API
(version: 1.1.4)
503 service_unavailable

service_unavailable [scalar]

Service unavailable

API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)