Skip to content

Commit ae3fb4c

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

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

9+
permissions: {}
10+
911
jobs:
1012
nbfmt:
1113
# Check for opt-out label.
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
1218
if: >-
1319
${{ github.actor == 'tfdocsbot' &&
1420
!contains(github.event.client_payload.pull_request.labels.*.name, 'nbfmt-disable') }}

0 commit comments

Comments
 (0)