Skip to content

Commit 61160ef

Browse files
authored
Add workflow permissions (#9536)
1 parent 05f53e0 commit 61160ef

4 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/ci-cleanup.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
cleanup:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
actions: write
1114
steps:
1215
- name: Check out code
1316
uses: actions/checkout@v6

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ concurrency:
1010
group: ci-new-2-${{ github.event.pull_request.number }}
1111
cancel-in-progress: true
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
check-changes:
1518
name: Check for Changes
@@ -276,6 +279,9 @@ jobs:
276279
runs-on: ubuntu-latest
277280
needs: check-changes
278281
if: needs.check-changes.outputs.src_changes == 'true'
282+
permissions:
283+
contents: read
284+
pull-requests: write
279285
steps:
280286
- name: Checkout Repository
281287
uses: actions/checkout@v6

.github/workflows/coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ concurrency:
1212
group: main-coverage
1313
cancel-in-progress: true
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
configure:
1720
name: Generate Test Matrix

.github/workflows/publish-website.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- .docker/website/**
1111
- website/**
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
build-and-deploy:
1518
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)