Skip to content

Commit 23c1862

Browse files
Peter Matkovskicursoragent
authored andcommitted
Address CodeRabbit review feedback on workflow permissions.
Scope actions: write to the build job that saves the cache, and grant pull-requests: write so compressed-size-action can post PR comments. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 703f693 commit 23c1862

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ env:
1414
BUILD_CACHE_KEY: ${{ github.sha }}-dist
1515

1616
permissions:
17-
actions: write
1817
contents: read
1918
pull-requests: read
2019

@@ -31,6 +30,9 @@ jobs:
3130

3231
build:
3332
runs-on: ubuntu-latest
33+
permissions:
34+
actions: write
35+
contents: read
3436
name: Build & Validate
3537
steps:
3638
- uses: actions/checkout@v6

.github/workflows/size.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212

1313
permissions:
1414
contents: read
15-
pull-requests: read
15+
pull-requests: write
1616

1717
jobs:
1818
compressed-size:

0 commit comments

Comments
 (0)