소스 검색

[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 달 전
부모
커밋
28b9b7c486
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      .github/workflows/pr-comments.yml

+ 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