Skip to content

Commit

Permalink
Use pull_request_target event to allow comments from forks
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Nov 10, 2023
1 parent 81b1296 commit 289d694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request-checker.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: PR Checker

on:
pull_request:
pull_request_target:
branches:
- docs-staging
- master
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
id: check-if-labeller
if: ${{ steps.check-if-writer.outcome == 'skipped' }}
env:
GITHUB_TOKEN: ${{ secrets.ZOWE_ROBOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
response=$(curl -fs -H "Authorization: Token $GITHUB_TOKEN" \
"https://api.github.com/repos/${{ github.repository }}/collaborators/${{ github.event.pull_request.user.login }}/permission")
Expand Down

0 comments on commit 289d694

Please sign in to comment.