Explorar o código

Merge pull request #620 from gtardif/ci_labeller

Allow running action labeller on PR from forks, using pull_request-target
Guillaume Tardif %!s(int64=5) %!d(string=hai) anos
pai
achega
6cb19ed26d
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      .github/workflows/labeler.yml

+ 5 - 4
.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 }}'