Skip to content

Commit e54e269

Browse files
authored
chore(ci): declare explicit permissions for read-default rollout
The generate.yaml workflow runs 'git push' using the default GITHUB_TOKEN provided by actions/checkout. Once the org-wide flip to read-default GITHUB_TOKEN lands, that push will fail unless the workflow explicitly declares contents: write. This narrows the token's effective scope (was implicit write-everything; becomes read all + write contents) without changing happy-path behavior.
1 parent bc49b22 commit e54e269

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/generate.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Update generated artifacts
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: write
8+
69
defaults:
710
run:
811
shell: bash

0 commit comments

Comments
 (0)