Skip to content

Commit c5ad23c

Browse files
authored
Add top-level permissions to 4 workflows (CopilotKit#4871)
## Summary - Add `permissions: contents: read` at the top level of prerelease.yml, publish-commit.yml, publish-release.yml, and showcase_docs-sync.yml - All four workflows already have job-level permissions blocks; the top-level block constrains the default token scope for any future jobs that might be added without explicit permissions ## Test plan - [ ] Verify prerelease workflow_dispatch still works - [ ] Verify publish-commit still posts snapshot comments (job-level `pull-requests: write` preserved) - [ ] Verify publish-release still reads content on PR merge - [ ] Verify showcase docs-sync still creates PRs (job-level `contents: write` + `pull-requests: write` preserved)
2 parents 9920fc7 + 42d8c60 commit c5ad23c

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/prerelease.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
default: false
2121
type: boolean
2222

23+
permissions:
24+
contents: read
25+
2326
concurrency:
2427
group: ${{ github.workflow }}-${{ github.ref }}
2528
cancel-in-progress: false

.github/workflows/publish-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
paths:
88
- "packages/**"
99

10+
permissions:
11+
contents: read
12+
1013
concurrency:
1114
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
1215
cancel-in-progress: true

.github/workflows/publish-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types: [closed]
66
branches: [main]
77

8+
permissions:
9+
contents: read
10+
811
concurrency:
912
group: publish-release
1013
cancel-in-progress: false

.github/workflows/showcase_docs-sync.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- "docs/snippets/**"
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
1114
concurrency:
1215
group: showcase-docs-sync
1316
cancel-in-progress: false

0 commit comments

Comments
 (0)