Skip to content

Commit e4a019c

Browse files
ci: scope down GitHub Token permissions (#3680)
* ci: scope down permissions for release_pr.yml * ci: scope down permissions for notify_release.yml --------- Co-authored-by: Matt Creaser <[email protected]>
1 parent a593af3 commit e4a019c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.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, released]
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/release_pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ env:
55
GIT_USER_NAME: awsmobilesdk-dev+ghops
66
GIT_USER_EMAIL: [email protected]
77
BASE_BRANCH: main
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
812
jobs:
913
create_pr_for_next_release:
1014
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)