Skip to content

Commit 8200bb2

Browse files
committed
chore: update permissions for actions workflows
1 parent a99334f commit 8200bb2

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/trigger-deploy-on-comment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Trigger deploy on comment
22
on:
33
issue_comment:
44
types: [created]
5+
permissions: read-all
56
jobs:
67
if_merged:
78
if: github.event.issue.pull_request && contains(github.event.comment.body, '/deploy')

.github/workflows/website-pr-validation.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
lint:
1111
runs-on: ubuntu-latest
12+
permissions: read-all
1213
steps:
1314
- name: Checkout repo
1415
uses: actions/checkout@v3
@@ -40,6 +41,10 @@ jobs:
4041
validate:
4142
runs-on: ubuntu-latest
4243
needs: lint
44+
permissions:
45+
contents: read
46+
pull-requests: write
47+
actions: write
4348
steps:
4449
- name: Checkout fork
4550
uses: actions/checkout@v3

0 commit comments

Comments
 (0)