Skip to content

Commit e5480ff

Browse files
authored
github-action: add artifact-metadata permission for attestations (#545)
## Details ⚠️ This PR was created by an automated tool. Please review the changes carefully. ⚠️ The attestations permission is necessary to persist the attestation. The artifact-metadata permission is required to generate artifact metadata storage records. This change adds `artifact-metadata: write` permission to workflows that have `attestations: write` permission, as required by the actions/attest-build-provenance action. See: * https://github.com/marketplace/actions/attest-build-provenance#usage * https://github.blog/changelog/2026-01-20-strengthen-your-supply-chain-with-code-to-cloud-traceability-and-slsa-build-level-3-security/ If there are any questions, please reach out to the @elastic/observablt-ci
1 parent 6a14479 commit e5480ff

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/release-main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ jobs:
1414
release:
1515
runs-on: ubuntu-latest
1616
permissions:
17+
artifact-metadata: write
18+
attestations: write
1719
contents: write
1820
id-token: write
1921
packages: write
20-
attestations: write
2122
steps:
2223
- uses: actions/checkout@v6
2324
- name: Bootstrap Action Workspace

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
release:
1414
runs-on: ubuntu-latest
1515
permissions:
16+
artifact-metadata: write
17+
attestations: write
1618
contents: write
1719
id-token: write
1820
issues: write
19-
attestations: write
2021
steps:
2122
- uses: actions/checkout@v6
2223
- name: Bootstrap Action Workspace

0 commit comments

Comments
 (0)