Skip to content

Commit f96d8ee

Browse files
committed
fix: remove artifact-metadata:write from reusable workflows
Reusable workflows cannot request permissions that callers don't grant — GitHub fails with a validation error. Removing artifact-metadata:write from the reusable workflows avoids breaking existing callers. The permission remains in the example files so callers can adopt it at their own pace.
1 parent 50f1938 commit f96d8ee

4 files changed

Lines changed: 0 additions & 14 deletions

File tree

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

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

121120
jobs:

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

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

125124
jobs:

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ 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-
4236
jobs:
4337
promote:
4438
name: Promote Docker image

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ 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-
4943
jobs:
5044
promote:
5145
name: Promote Docker image

0 commit comments

Comments
 (0)