Skip to content

Commit 87d578a

Browse files
authored
Merge pull request #39135 from github/repo-sync
Repo sync
2 parents bddbff4 + 58e7ab7 commit 87d578a

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

content/actions/how-tos/security-for-github-actions/using-artifact-attestations/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ children:
1111
- /using-artifact-attestations-and-reusable-workflows-to-achieve-slsa-v1-build-level-3
1212
- /enforcing-artifact-attestations-with-a-kubernetes-admission-controller
1313
- /verifying-attestations-offline
14+
- /managing-the-lifecycle-of-artifact-attestations
1415
redirect_from:
1516
- /actions/security-for-github-actions/using-artifact-attestations
1617
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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).

content/actions/how-tos/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,9 @@ gh attestation verify PATH/TO/YOUR/BUILD/ARTIFACT-BINARY \
221221
--format json \
222222
--jq '.[].verificationResult.statement.predicate'
223223
```
224+
225+
## Managing the lifecycle of attestations
226+
227+
{% data reusables.actions.lifecycle-of-attestations %}
228+
229+
To find and delete attestations, see [AUTOTITLE](/actions/how-tos/security-for-github-actions/using-artifact-attestations/managing-the-lifecycle-of-artifact-attestations).
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Attestations are only meaningful when they are linked to artifacts that people consume. To keep your attestations relevant and manageable, you should delete attestations that are no longer needed, such as:
2+
3+
* Attestations created by accident
4+
* Attestations linked to artifacts that no longer exist
5+
* Attestations linked to artifacts that consumers should no longer trust
6+
7+
When consumers have a verification process in place, deleting an attestation can prevent the associated artifact from being used. Consider setting up automations to ensure that attestations are deleted when the associated artifact is removed from an external service (for example, an image is deleted from a container registry).

0 commit comments

Comments
 (0)