Skip to content

Commit 086badc

Browse files
authored
Merge pull request #4992 from github/openapi-update-5869cf6b8f3cbbd48741b5a987a9f281b633d1bcc2ea7cb3b23ddbf8d7da9395
Update OpenAPI 3.0 Descriptions
2 parents 6165e61 + e1a4d85 commit 086badc

16 files changed

+7640
-4964
lines changed

descriptions/api.github.com/api.github.com.2022-11-28.json

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69661,6 +69661,155 @@
6966169661
}
6966269662
}
6966369663
},
69664+
"/users/{username}/attestations/bulk-list": {
69665+
"post": {
69666+
"summary": "List attestations by bulk subject digests",
69667+
"description": "List a collection of artifact attestations associated with any entry in a list of subject digests owned by a user.\n\nThe collection of attestations returned by this endpoint is filtered according to the authenticated user's permissions; if the authenticated user cannot read a repository, the attestations associated with that repository will not be included in the response. In addition, when using a fine-grained access token the `attestations:read` permission is required.\n\n**Please note:** in order to offer meaningful security benefits, an attestation's signature and timestamps **must** be cryptographically verified, and the identity of the attestation signer **must** be validated. Attestations can be verified using the [GitHub CLI `attestation verify` command](https://cli.github.com/manual/gh_attestation_verify). For more information, see [our guide on how to use artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).",
69668+
"tags": [
69669+
"users"
69670+
],
69671+
"operationId": "users/list-attestations-bulk",
69672+
"externalDocs": {
69673+
"description": "API method documentation",
69674+
"url": "https://docs.github.com/rest/users/attestations#list-attestations-by-bulk-subject-digests"
69675+
},
69676+
"parameters": [
69677+
{
69678+
"$ref": "#/components/parameters/per-page"
69679+
},
69680+
{
69681+
"$ref": "#/components/parameters/pagination-before"
69682+
},
69683+
{
69684+
"$ref": "#/components/parameters/pagination-after"
69685+
},
69686+
{
69687+
"$ref": "#/components/parameters/username"
69688+
}
69689+
],
69690+
"requestBody": {
69691+
"required": true,
69692+
"content": {
69693+
"application/json": {
69694+
"schema": {
69695+
"type": "object",
69696+
"properties": {
69697+
"subject_digests": {
69698+
"type": "array",
69699+
"items": {
69700+
"type": "string"
69701+
},
69702+
"description": "List of subject digests to fetch attestations for.",
69703+
"minItems": 1,
69704+
"maxItems": 1024
69705+
},
69706+
"predicate_type": {
69707+
"type": "string",
69708+
"description": "Optional filter for fetching attestations with a given predicate type.\nThis option accepts `provenance`, `sbom`, or freeform text for custom predicate types."
69709+
}
69710+
},
69711+
"required": [
69712+
"subject_digests"
69713+
]
69714+
},
69715+
"examples": {
69716+
"default": {
69717+
"$ref": "#/components/examples/bulk-subject-digest-body"
69718+
},
69719+
"withPredicateType": {
69720+
"$ref": "#/components/examples/bulk-subject-digest-body-with-predicate-type"
69721+
}
69722+
}
69723+
}
69724+
}
69725+
},
69726+
"responses": {
69727+
"200": {
69728+
"description": "Response",
69729+
"content": {
69730+
"application/json": {
69731+
"schema": {
69732+
"type": "object",
69733+
"properties": {
69734+
"attestations_subject_digests": {
69735+
"type": "object",
69736+
"additionalProperties": {
69737+
"nullable": true,
69738+
"type": "array",
69739+
"items": {
69740+
"type": "object",
69741+
"properties": {
69742+
"bundle": {
69743+
"type": "object",
69744+
"properties": {
69745+
"mediaType": {
69746+
"type": "string"
69747+
},
69748+
"verificationMaterial": {
69749+
"type": "object",
69750+
"properties": {},
69751+
"additionalProperties": true
69752+
},
69753+
"dsseEnvelope": {
69754+
"type": "object",
69755+
"properties": {},
69756+
"additionalProperties": true
69757+
}
69758+
},
69759+
"description": "The bundle of the attestation."
69760+
},
69761+
"repository_id": {
69762+
"type": "integer"
69763+
},
69764+
"bundle_url": {
69765+
"type": "string"
69766+
}
69767+
}
69768+
}
69769+
},
69770+
"description": "Mapping of subject digest to bundles."
69771+
},
69772+
"page_info": {
69773+
"type": "object",
69774+
"properties": {
69775+
"has_next": {
69776+
"type": "boolean",
69777+
"description": "Indicates whether there is a next page."
69778+
},
69779+
"has_previous": {
69780+
"type": "boolean",
69781+
"description": "Indicates whether there is a previous page."
69782+
},
69783+
"next": {
69784+
"type": "string",
69785+
"description": "The cursor to the next page."
69786+
},
69787+
"previous": {
69788+
"type": "string",
69789+
"description": "The cursor to the previous page."
69790+
}
69791+
},
69792+
"description": "Information about the current page."
69793+
}
69794+
}
69795+
},
69796+
"examples": {
69797+
"default": {
69798+
"$ref": "#/components/examples/list-attestations-bulk"
69799+
}
69800+
}
69801+
}
69802+
}
69803+
}
69804+
},
69805+
"x-github": {
69806+
"githubCloudOnly": false,
69807+
"enabledForGitHubApps": true,
69808+
"category": "users",
69809+
"subcategory": "attestations"
69810+
}
69811+
}
69812+
},
6966469813
"/users/{username}/attestations/delete-request": {
6966569814
"post": {
6966669815
"summary": "Delete attestations in bulk",

0 commit comments

Comments
 (0)