Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
317 changes: 218 additions & 99 deletions providers/src/github/v00.00.00000/provider.yaml

Large diffs are not rendered by default.

50,730 changes: 15,862 additions & 34,868 deletions providers/src/github/v00.00.00000/services/actions.yaml

Large diffs are not rendered by default.

36,707 changes: 6,790 additions & 29,917 deletions providers/src/github/v00.00.00000/services/activity.yaml

Large diffs are not rendered by default.

2,677 changes: 2,677 additions & 0 deletions providers/src/github/v00.00.00000/services/agent_tasks.yaml

Large diffs are not rendered by default.

37,593 changes: 7,193 additions & 30,400 deletions providers/src/github/v00.00.00000/services/apps.yaml

Large diffs are not rendered by default.

28,823 changes: 1,739 additions & 27,084 deletions providers/src/github/v00.00.00000/services/billing.yaml

Large diffs are not rendered by default.

1,030 changes: 1,030 additions & 0 deletions providers/src/github/v00.00.00000/services/campaigns.yaml

Large diffs are not rendered by default.

32,617 changes: 3,873 additions & 28,744 deletions providers/src/github/v00.00.00000/services/checks.yaml

Large diffs are not rendered by default.

964 changes: 964 additions & 0 deletions providers/src/github/v00.00.00000/services/classroom.yaml

Large diffs are not rendered by default.

33,471 changes: 4,686 additions & 28,785 deletions providers/src/github/v00.00.00000/services/code_scanning.yaml

Large diffs are not rendered by default.

3,496 changes: 3,496 additions & 0 deletions providers/src/github/v00.00.00000/services/code_security.yaml

Large diffs are not rendered by default.

27,082 changes: 234 additions & 26,848 deletions providers/src/github/v00.00.00000/services/codes_of_conduct.yaml

Large diffs are not rendered by default.

39,526 changes: 8,004 additions & 31,522 deletions providers/src/github/v00.00.00000/services/codespaces.yaml

Large diffs are not rendered by default.

32,259 changes: 4,577 additions & 27,682 deletions providers/src/github/v00.00.00000/services/copilot.yaml

Large diffs are not rendered by default.

168 changes: 168 additions & 0 deletions providers/src/github/v00.00.00000/services/credentials.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
openapi: 3.0.3
info:
title: credentials API
description: Revoke compromised or leaked GitHub credentials.
version: 1.1.4
paths:
/credentials/revoke:
post:
summary: Revoke a list of credentials
description: >-
Submit a list of credentials to be revoked. This endpoint is intended to
revoke credentials the caller does not own and may have found exposed on
GitHub.com or elsewhere. It can also be used for credentials associated
with an old user account that you no longer have access to. Credential
owners will be notified of the revocation.


This endpoint currently accepts the following credential types:

- Personal access tokens (classic) (`ghp_`)

- Fine-grained personal access tokens (`github_pat_`)

- OAuth app access tokens (`gho_`)

- User-to-server tokens from GitHub Apps (`ghu_`)

- Refresh tokens from GitHub Apps (`ghr_`)



Revoked credentials may impact users on GitHub Free, Pro, & Team and
GitHub Enterprise Cloud, and GitHub Enterprise Cloud with Enterprise
Managed Users.

GitHub cannot reactivate any credentials that have been revoked; new
credentials will need to be generated.


To prevent abuse, this API is limited to only 60 unauthenticated
requests per hour and a max of 1000 tokens per API request.


> [!NOTE]

> Any authenticated requests will return a 403.
tags:
- credentials
operationId: credentials/revoke
externalDocs:
description: API method documentation
url: >-
https://docs.github.com/rest/credentials/revoke#revoke-a-list-of-credentials
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
credentials:
type: array
description: A list of credentials to be revoked, up to 1000 per request.
items:
type: string
minItems: 1
maxItems: 1000
required:
- credentials
examples:
default:
value:
credentials:
- ghp_1234567890abcdef1234567890abcdef12345678
- >-
github_pat_0A1B2C3D4E5F6G7H8I9J0K_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456
- gho_1234567890abcdef1234567890abcdef12345678
- ghu_1234567890abcdef1234567890abcdef12345678
- >-
ghr_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab
responses:
'202':
$ref: '#/components/responses/accepted'
'422':
$ref: '#/components/responses/validation_failed_simple'
'500':
$ref: '#/components/responses/internal_error'
x-github:
githubCloudOnly: false
enabledForGitHubApps: false
category: credentials
subcategory: revoke
x-stackQL-resource: revoke
components:
schemas:
validation-error-simple:
title: Validation Error Simple
description: Validation Error Simple
type: object
required:
- message
- documentation_url
properties:
message:
type: string
documentation_url:
type: string
errors:
type: array
items:
type: string
basic-error:
title: Basic Error
description: Basic Error
type: object
properties:
message:
type: string
documentation_url:
type: string
url:
type: string
status:
type: string
responses:
accepted:
description: Accepted
content:
application/json:
schema:
type: string
description: (opaque JSON object)
examples:
default:
value: null
validation_failed_simple:
description: Validation failed, or the endpoint has been spammed.
content:
application/json:
schema:
$ref: '#/components/schemas/validation-error-simple'
internal_error:
description: Internal Error
content:
application/json:
schema:
$ref: '#/components/schemas/basic-error'
x-stackQL-resources:
credentials:
id: github.credentials.credentials
name: credentials
title: Credentials
methods:
revoke:
operation:
$ref: '#/paths/~1credentials~1revoke/post'
response:
mediaType: application/json
openAPIDocKey: '202'
sqlVerbs:
select: []
insert:
- $ref: '#/components/x-stackQL-resources/credentials/methods/revoke'
update: []
delete: []
replace: []
servers:
- url: https://api.github.com
Loading
Loading