Skip to content

Commit 16ab5cb

Browse files
authored
fix(github-actions-bot): add additional permissions (#3759)
1 parent 007aec4 commit 16ab5cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/github-actions-bot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ jobs:
8989
cmd-publish-pr-on-npm:
9090
needs: [accept-cmd]
9191
if: needs.accept-cmd.outputs.cmd == 'publish-pr-on-npm'
92+
permissions:
93+
contents: read
9294
uses: ./.github/workflows/cmd-publish-pr-on-npm.yml
9395
with:
9496
pull_request_json: ${{ needs.accept-cmd.outputs.pull_request_json }}
@@ -98,6 +100,9 @@ jobs:
98100
cmd-run-benchmark:
99101
needs: [accept-cmd]
100102
if: needs.accept-cmd.outputs.cmd == 'run-benchmark'
103+
permissions:
104+
contents: read # for checkout
105+
actions: read # to list workflow runs
101106
uses: ./.github/workflows/cmd-run-benchmark.yml
102107
with:
103108
pull_request_json: ${{ needs.accept-cmd.outputs.pull_request_json }}

0 commit comments

Comments
 (0)