Skip to content

Commit e7be9b5

Browse files
authored
feat!: require artifact-metadata:write permission for attestations (#144)
Add artifact-metadata:write to all Docker build and promote reusable workflows. This is required by the actions/attest-build-provenance action since GitHub made the permission GA in January 2026. BREAKING CHANGE: Caller workflows that set explicit permissions must add `artifact-metadata: write` to their permissions block. Without it, GitHub will reject the workflow with a validation error.
1 parent 36a8ebd commit e7be9b5

4 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/docker-build-push-dockerhub.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ on:
115115
permissions:
116116
id-token: write
117117
attestations: write
118+
artifact-metadata: write
118119
contents: read
119120

120121
jobs:

.github/workflows/docker-build-push-jfrog.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ on:
119119
permissions:
120120
id-token: write
121121
attestations: write
122+
artifact-metadata: write
122123
contents: read
123124

124125
jobs:

.github/workflows/docker-promote-dockerhub.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ on:
3333
description: "Docker Hub password"
3434
required: true
3535

36+
permissions:
37+
id-token: write
38+
attestations: write
39+
artifact-metadata: write
40+
contents: read
41+
3642
jobs:
3743
promote:
3844
name: Promote Docker image

.github/workflows/docker-promote-jfrog.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ on:
4040
required: false
4141
default: false
4242

43+
permissions:
44+
id-token: write
45+
attestations: write
46+
artifact-metadata: write
47+
contents: read
48+
4349
jobs:
4450
promote:
4551
name: Promote Docker image

0 commit comments

Comments
 (0)