Skip to content

Commit

Permalink
fix(ci): add permissions to comment job
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW committed May 31, 2024
1 parent f8d0836 commit 95124c0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/example-previews-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
build_previews_matrix:
name: Build previews matrix
permissions:
pull-requests: read
issues: read
pull-requests: write
issues: write
outputs:
matrix: ${{ steps.build_examples_matrix.outputs.EXAMPLES }}
pr_ref: ${{ fromJson(steps.request.outputs.data).head.ref }}
Expand All @@ -20,6 +20,7 @@ jobs:
with:
comment-id: ${{ github.event.comment.id }}
reactions: rocket
token: ${{ secrets.GITHUB_TOKEN }}
- name: Github API Request
id: request
uses: octokit/[email protected]
Expand All @@ -40,8 +41,8 @@ jobs:
needs: build_previews_matrix
if: ${{ fromJson(needs.build_previews_matrix.outputs.matrix).include }}
permissions:
pull-requests: read
issues: read
pull-requests: write
issues: write
strategy:
matrix: ${{ fromJson(needs.build_previews_matrix.outputs.matrix) }}
runs-on: ubuntu-latest
Expand Down

0 comments on commit 95124c0

Please sign in to comment.