Skip to content

Commit 0d87830

Browse files
ci: scope down GitHub Token permissions (#3142)
Co-authored-by: Matt Creaser <[email protected]>
1 parent a89171d commit 0d87830

File tree

6 files changed

+20
-0
lines changed

6 files changed

+20
-0
lines changed

.github/workflows/codecov_code_coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- 'main'
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417
runs-on: ubuntu-latest

.github/workflows/notify_pull_request.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
types: [opened, ready_for_review, reopened]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
notify:
912
runs-on: ubuntu-latest

.github/workflows/notify_release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
types: [created, published]
1010

1111
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
# This workflow contains a single job called "notify"
1417
notify:

.github/workflows/pr_title_checker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- labeled
1111
- unlabeled
1212

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

.github/workflows/release_pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ env:
1818
GIT_USER_NAME: amplify-android-dev+ghops
1919
GIT_USER_EMAIL: [email protected]
2020
BASE_BRANCH: ${{ github.ref_name }}
21+
permissions:
22+
contents: write
23+
pull-requests: write
24+
2125
jobs:
2226
create_pr_for_next_release:
2327
runs-on: ubuntu-latest

.github/workflows/stale.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
schedule:
55
- cron: "30 1 * * *"
66

7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
711
jobs:
812
stale:
913
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)