Skip to content

Commit

Permalink
Change "pull_request" event to "pull_request_target" (#72)
Browse files Browse the repository at this point in the history
`pull_request_target` event is more appropriate for the `Issue/PR response` workflow, as the workflow executes against pull requests but in the context of base repository (for security reasons).

Otherwise, when a PR is triggered by the `pull_request` event the `GITHUB_TOKEN` authorization scope may not allow executing API calls in the context of workflows from a pull request based on repository forks.
  • Loading branch information
igwejk committed Dec 11, 2023
1 parent 2911003 commit a1c7916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/templates/immediate-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
issues:
types:
- opened
pull_request:
pull_request_target:
types:
- opened
jobs:
Expand Down

0 comments on commit a1c7916

Please sign in to comment.