Skip to content

Commit

Permalink
fix(github-actions-bot): add additional permissions
Browse files Browse the repository at this point in the history
sub-workflows cannot be called from parent workflow without sufficient permissions
  • Loading branch information
yaacovCR committed Oct 18, 2022
1 parent 5009d9f commit 73897c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/github-actions-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ jobs:
cmd-publish-pr-on-npm:
needs: [accept-cmd]
if: needs.accept-cmd.outputs.cmd == 'publish-pr-on-npm'
permissions:
contents: read
uses: ./.github/workflows/cmd-publish-pr-on-npm.yml
with:
pull_request_json: ${{ needs.accept-cmd.outputs.pull_request_json }}
Expand All @@ -98,6 +100,9 @@ jobs:
cmd-run-benchmark:
needs: [accept-cmd]
if: needs.accept-cmd.outputs.cmd == 'run-benchmark'
permissions:
contents: read # for checkout
actions: read # to list workflow runs
uses: ./.github/workflows/cmd-run-benchmark.yml
with:
pull_request_json: ${{ needs.accept-cmd.outputs.pull_request_json }}
Expand Down

0 comments on commit 73897c8

Please sign in to comment.