From f6d26b321cd9787e177ee27363f80acc4732495e Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Tue, 15 Sep 2020 10:20:32 +0200 Subject: [PATCH] Allow running action labeller on PR from forks, using pull_request-target. Cf https://github.com/actions/labeler/issues/12#issuecomment-670967607 Signed-off-by: Guillaume Tardif --- .github/workflows/labeler.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index c01f1380..e3076b5c 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,10 +1,11 @@ -name: "Pull Request Labeler" -on: [pull_request] +name: 'Pull Request Labeler' +on: + - pull_request_target jobs: triage: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v2 + - uses: actions/labeler@v2.1.1 with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" + repo-token: '${{ secrets.GITHUB_TOKEN }}' \ No newline at end of file