Skip to content

Commit 9292ec5

Browse files
chore(ci): More workflow permission changes (#11394)
Working towards have the minimum permissions in our CI workflows.
1 parent bf709ab commit 9292ec5

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.github/workflows/check-changelog.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ concurrency:
1919
group: ${{ github.workflow }}-${{ github.ref }}
2020
cancel-in-progress: true
2121

22+
permissions: {}
23+
2224
jobs:
2325
check-changesets:
2426
name: 📝 Check changesets

.github/workflows/check-create-redwood-app.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
1111
cancel-in-progress: true
1212

13+
permissions: {}
14+
1315
jobs:
1416
check-create-redwood-app:
1517
name: Check create redwood app

.github/workflows/check-test-project-fixture.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
1111
cancel-in-progress: true
1212

13+
permissions: {}
14+
1315
jobs:
1416
detect-changes:
1517
if: github.repository == 'redwoodjs/redwood'
@@ -39,6 +41,8 @@ jobs:
3941
if: needs.detect-changes.outputs.code == 'true'
4042
name: Check test project fixture
4143
runs-on: ubuntu-latest
44+
permissions:
45+
actions: write
4246
steps:
4347
- uses: actions/checkout@v4
4448

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ concurrency:
2626
group: ${{ github.workflow }}-${{ github.ref }}
2727
cancel-in-progress: true
2828

29-
permissions:
30-
security-events: write
29+
permissions: {}
3130

3231
jobs:
3332
analyze:
3433
name: 🔬 Analyze
3534
runs-on: ubuntu-latest
35+
permissions:
36+
security-events: write
3637

3738
strategy:
3839
fail-fast: false

0 commit comments

Comments
 (0)