|
| 1 | +--- |
| 2 | +title: Managing the lifecycle of artifact attestations |
| 3 | +shortTitle: Manage attestations |
| 4 | +intro: Search for and delete attestations that you no longer need. |
| 5 | +versions: |
| 6 | + fpt: '*' |
| 7 | + ghec: '*' |
| 8 | +--- |
| 9 | + |
| 10 | +{% data reusables.actions.lifecycle-of-attestations %} |
| 11 | + |
| 12 | +## Finding attestations |
| 13 | + |
| 14 | +1. Navigate to the repository where the attestation was produced. |
| 15 | +{% data reusables.repositories.actions-tab %} |
| 16 | +1. In the left sidebar, under "Management," click **{% octicon "verified" aria-hidden="true" aria-label="verified" %} Attestations**. |
| 17 | +1. The attestations are sorted by creation date, newest first. Use the "Search or filter" bar to search for an attestation or filter the results. |
| 18 | + |
| 19 | +### Searching and filtering |
| 20 | + |
| 21 | +Enter **free text** to search by subject name. This returns all attestations with subject names that partially match your search string. Multiple attestations can have the same subject name. |
| 22 | + |
| 23 | +Use the `created` filter to filter by creation date. To enter a custom date range, click today's date then edit the default query. |
| 24 | + |
| 25 | +* For example: `created:<2025-04-03`. |
| 26 | +* Supported operators: `> <`. |
| 27 | + |
| 28 | +Use the `predicate` filter to filter by the kind of attestation. A predicate is the type of claim that an attestation makes about an artifact, such as "this artifact was built during a particular workflow run and originates from this repository." |
| 29 | + |
| 30 | +* Provenance attestations were created with the `attest-build-provenance` action. |
| 31 | +* SBOM attestations were created with the `attest-sbom` action. |
| 32 | +* Custom predicate type patterns are **not** supported in the search field, but are supported by the API. |
| 33 | + |
| 34 | +## Deleting attestations |
| 35 | + |
| 36 | +Before deleting an attestation, we recommend downloading a copy of it. Once the attestation is deleted, consumers with a verification process in place will **no longer be able to use the associated artifact**, and you will no longer be able to find the attestation on {% data variables.product.github %}. |
| 37 | + |
| 38 | +1. In the list of attestations, select the checkbox next to the attestations you want to delete. You can select multiple attestations at a time. |
| 39 | +1. Click **{% octicon "trash" aria-hidden="true" aria-label="trash" %} Delete**. |
| 40 | +1. Read the message, then confirm by clicking **Delete attestations**. |
| 41 | + |
| 42 | +## Managing attestations with the API |
| 43 | + |
| 44 | +To manage attestations in bulk with the REST API, see [AUTOTITLE](/rest/users/attestations). |
0 commit comments