Skip to content

Commit c745749

Browse files
committed
chore(ci): declare explicit permissions for read-default rollout
The publish-clm.yaml and publish-scaffold.yaml workflows upload release binaries via curl using the default GITHUB_TOKEN. Once the org-wide flip to read-default GITHUB_TOKEN lands, the asset upload requests will 403 unless the workflows explicitly declare contents: write. This narrows the token's effective scope (was implicit write-everything; becomes contents:write only) without changing happy-path behavior.
1 parent e058bfa commit c745749

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/publish-clm.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: write
9+
710
defaults:
811
run:
912
shell: bash

.github/workflows/publish-scaffold.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: write
9+
710
defaults:
811
run:
912
shell: bash

0 commit comments

Comments
 (0)