Skip to content

Commit c185725

Browse files
committed
Set top level permission of workflows to read only
1 parent 86aecc0 commit c185725

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/app-distribution-alpha.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: app-distribution-alpha
33
on:
44
workflow_dispatch:
55

6+
permissions: read-all
7+
68
jobs:
79
app-distribution-alpha:
810
runs-on: ubuntu-latest

.github/workflows/app-distribution-beta.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
- cron: '31 3 * * MON-FRI'
66
workflow_dispatch:
77

8+
permissions: read-all
9+
810
jobs:
911
app-distribution-beta:
1012
runs-on: ubuntu-latest

.github/workflows/build-docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ on:
1515
- labeled
1616
- unlabeled
1717

18+
permissions: read-all
19+
1820
jobs:
1921
build:
2022
runs-on: ubuntu-latest
@@ -76,6 +78,8 @@ jobs:
7678
needs: build
7779
runs-on: ubuntu-latest
7880
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
81+
permissions:
82+
pull-requests: write # Required to post comments on PRs
7983
steps:
8084
- name: Checkout code
8185
uses: actions/checkout@v6

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
- labeled
1515
- unlabeled
1616

17+
permissions: read-all
18+
1719
jobs:
1820
build:
1921
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)