Skip to content

Commit bc142a2

Browse files
authored
Fix permission for docker attestation (#1511)
1 parent 41a26c1 commit bc142a2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-docker.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ env:
2121

2222
permissions:
2323
contents: read
24-
# TODO(zanieb): Ideally, this would be `read` on dry-run but that will require
25-
# significant changes to the workflow.
2624
packages: write # zizmor: ignore[excessive-permissions]
2725

2826
jobs:
@@ -116,6 +114,11 @@ jobs:
116114
name: release
117115
needs:
118116
- docker-build
117+
permissions:
118+
contents: read
119+
packages: write
120+
id-token: write
121+
attestations: write
119122
if: ${{ inputs.plan != '' && !fromJson(inputs.plan).announcement_tag_is_implicit }}
120123
steps:
121124
- name: Download digests

0 commit comments

Comments
 (0)