attestation_repositories
Creates, updates, deletes, gets or lists an attestation_repositories resource.
Overview
| Name | attestation_repositories |
| Type | Resource |
| Id | github.orgs.attestation_repositories |
Fields
The following fields are returned by SELECT queries:
- list_attestation_repositories
Response
| Name | Datatype | Description |
|---|---|---|
id | integer | |
name | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_attestation_repositories | select | org | per_page, before, after, predicate_type | 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 |
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.
| Name | Datatype | Description |
|---|---|---|
org | string | The organization name. The name is not case sensitive. |
after | string | A 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." |
before | string | A 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_page | integer | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
predicate_type | string | Optional 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_attestation_repositories
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 }}'
;