Browse Source

ci: use pull_request_target for PR labeled workflows (#40623)

David Sanders 1 year ago
parent
commit
c12ab7c941
1 changed files with 2 additions and 3 deletions
  1. 2 3
      .github/workflows/pull-request-labeled.yml

+ 2 - 3
.github/workflows/pull-request-labeled.yml

@@ -1,11 +1,10 @@
 name: Pull Request Labeled
 
 on:
-  pull_request:
+  pull_request_target:
     types: [labeled]
 
-permissions:
-  contents: read
+permissions: {}
 
 jobs:
   pull-request-labeled-backport-requested: