Эх сурвалжийг харах

[ci] Update PR comments workflow to use pull_request_target event and adjust permissions (#4036)

- Change pull request event so that PRs from forks can also trigger the action comments on Hue PRs
Harsh Gupta 8 сар өмнө
parent
commit
28b9b7c486

+ 2 - 4
.github/workflows/pr-comments.yml

@@ -1,13 +1,11 @@
 name: PR Comments
 
 on:
-  pull_request:
+  pull_request_target:
     branches:
       - master
 
 permissions:
-  contents: write
-  checks: write
   pull-requests: write
 
 jobs:
@@ -67,7 +65,7 @@ jobs:
           remove-link-from-badge: true
           default-branch: master
   
-  ut-files-comment:
+  python-ut-files-comment:
     runs-on: ubuntu-22.04
     steps:
       - name: Checkout code