From be94f1e047e90686b05c40f2e5f31a3ee7f1a6db Mon Sep 17 00:00:00 2001 From: Norbert Manthey Date: Mon, 26 Oct 2020 11:21:26 +0100 Subject: [PATCH] github: use pull_request_target There are permission issues with commenting on pull requests when the action is run as pull request in the fork. To avoid this issue, use the pull_request_target target when running this action, so that there is no permission issue. Signed-off-by: Norbert Manthey --- .github/workflows/one-line-cr-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/one-line-cr-bot.yml b/.github/workflows/one-line-cr-bot.yml index fceab883..4347fd74 100644 --- a/.github/workflows/one-line-cr-bot.yml +++ b/.github/workflows/one-line-cr-bot.yml @@ -11,7 +11,7 @@ name: One Line CR Bot on: - pull_request: + pull_request_target: # [ACTION REQUIRED] Set the branch you want to analyze PRs for branches: [ mainline ]