Skip to content
Closed
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
83 changes: 83 additions & 0 deletions descriptions-next/api.github.com/api.github.com.2022-11-28.json
Original file line number Diff line number Diff line change
Expand Up @@ -12816,6 +12816,77 @@
}
}
},
"/orgs/{org}/attestations/repositories": {
"get": {
"summary": "List attestation repositories",
"description": "List repositories owned by the provided organization that have created at least one attested artifact\nResults will be sorted in ascending order by repository ID",
"tags": [
"orgs"
],
"operationId": "orgs/list-attestation-repositories",
"externalDocs": {
"description": "API method documentation",
"url": "https://docs.github.com/rest/orgs/orgs#list-attestation-repositories"
},
"parameters": [
{
"$ref": "#/components/parameters/per-page"
},
{
"$ref": "#/components/parameters/pagination-before"
},
{
"$ref": "#/components/parameters/pagination-after"
},
{
"$ref": "#/components/parameters/org"
},
{
"name": "predicate_type",
"description": "Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types.",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
}
}
},
"examples": {
"default": {
"$ref": "#/components/examples/list-attestation-repositories"
}
}
}
}
}
},
"x-github": {
"githubCloudOnly": false,
"enabledForGitHubApps": true,
"category": "orgs",
"subcategory": "orgs"
}
}
},
"/orgs/{org}/attestations/{attestation_id}": {
"delete": {
"summary": "Delete attestations by ID",
Expand Down Expand Up @@ -291971,6 +292042,18 @@
]
}
},
"list-attestation-repositories": {
"value": [
{
"id": 123,
"name": "foo"
},
{
"id": 456,
"name": "bar"
}
]
},
"list-attestations": {
"value": {
"attestations": [
Expand Down
53 changes: 53 additions & 0 deletions descriptions-next/api.github.com/api.github.com.2022-11-28.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9221,6 +9221,53 @@ paths:
enabledForGitHubApps: true
category: orgs
subcategory: attestations
"/orgs/{org}/attestations/repositories":
get:
summary: List attestation repositories
description: |-
List repositories owned by the provided organization that have created at least one attested artifact
Results will be sorted in ascending order by repository ID
tags:
- orgs
operationId: orgs/list-attestation-repositories
externalDocs:
description: API method documentation
url: https://docs.github.com/rest/orgs/orgs#list-attestation-repositories
parameters:
- "$ref": "#/components/parameters/per-page"
- "$ref": "#/components/parameters/pagination-before"
- "$ref": "#/components/parameters/pagination-after"
- "$ref": "#/components/parameters/org"
- name: predicate_type
description: |-
Optional filter for fetching attestations with a given predicate type.
This option accepts `provenance`, `sbom`, or freeform text for custom predicate types.
in: query
required: false
schema:
type: string
responses:
'200':
description: Response
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
type: integer
name:
type: string
examples:
default:
"$ref": "#/components/examples/list-attestation-repositories"
x-github:
githubCloudOnly: false
enabledForGitHubApps: true
category: orgs
subcategory: orgs
"/orgs/{org}/attestations/{attestation_id}":
delete:
summary: Delete attestations by ID
Expand Down Expand Up @@ -215296,6 +215343,12 @@ components:
signatures:
- sig: MEQCIEGIGAm7gZVLLpsrPcjndEjiuctE2/c9+j9KGvazz3rlAiAd6O16T5hkzRM3IbRPzm+xT40mNQZxefd7laDP6x2XLQ==
repository_id: 1
list-attestation-repositories:
value:
- id: 123
name: foo
- id: 456
name: bar
list-attestations:
value:
attestations:
Expand Down
Loading