Skip to content

Commit 5733160

Browse files
committed
build: harden bot-pr-new.yaml permissions
Signed-off-by: Alex <[email protected]>
1 parent b3f028d commit 5733160

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/bot-pr-new.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@ on:
66
repository_dispatch:
77
types: [opened, reopened]
88

9+
permissions:
10+
contents: read # to fetch code (actions/checkout)
11+
912
jobs:
1013
comment-welcome:
14+
permissions:
15+
contents: read # to fetch code (actions/checkout)
16+
pull-requests: write # to comment on pull-request
17+
1118
if: ${{ github.actor == 'tfdocsbot' }}
1219
runs-on: ubuntu-latest
1320
steps:

0 commit comments

Comments
 (0)