Skip to content

Commit 08498fc

Browse files
theletterfcodexcursoragent
authored
Add explicit workflow write permissions for GITHUB_TOKEN (#6930)
## Summary - add explicit `contents: write` and `pull-requests: write` permissions to `update-kube-stack-version.yml` - add explicit `issues: write` permissions to `add-new-team-label.yml` - keep both workflows compatible with a read-only default `GITHUB_TOKEN` ## Test plan - [x] Reviewed both workflows to confirm they write through `GITHUB_TOKEN` - [x] Verified the diff only adds the required explicit permissions - [ ] Optional: run the workflows in GitHub after merge or in a test branch if you want runtime confirmation Made with [Cursor](https://cursor.com) --------- Co-authored-by: OpenAI <noreply@openai.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e541864 commit 08498fc

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/add-new-team-label.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ on:
44
issues:
55
types: [opened]
66

7+
permissions: {}
8+
79
jobs:
810
add-needs-triage-label:
911
name: Add `needs-team` label
1012
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
1115
steps:
1216
- name: Add the needs-team label
1317
uses: actions-ecosystem/action-add-labels@v1

.github/workflows/update-kube-stack-version.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ on:
1212
default: false
1313
type: boolean
1414

15+
permissions: {}
16+
1517
jobs:
1618
update-kube-stack-version:
1719
runs-on: ubuntu-latest
20+
permissions:
21+
contents: write
22+
pull-requests: write
1823

1924
steps:
2025
- name: Checkout repository

0 commit comments

Comments
 (0)