Skip to main content

attestation_repositories

Creates, updates, deletes, gets or lists an attestation_repositories resource.

Overview

Nameattestation_repositories
TypeResource
Idgithub.orgs.attestation_repositories

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idinteger
namestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_attestation_repositoriesselectorgper_page, before, after, predicate_typeList repositories owned by the provided organization that have created at least one attested artifact
Results will be sorted in ascending order by repository ID

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
orgstringThe organization name. The name is not case sensitive.
afterstringA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
beforestringA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
per_pageintegerThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
predicate_typestringOptional filter for fetching attestations with a given predicate type. This option accepts provenance, sbom, release, or freeform text for custom predicate types.

SELECT examples

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

SELECT
id,
name
FROM github.orgs.attestation_repositories
WHERE org = '{{ org }}' -- required
AND per_page = '{{ per_page }}'
AND before = '{{ before }}'
AND after = '{{ after }}'
AND predicate_type = '{{ predicate_type }}'
;