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

[ci] Update PR comments CI checks to run in pull request scope only (#4170)

Harsh Gupta 5 сар өмнө
parent
commit
9aa033a79a

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

@@ -1,13 +1,10 @@
 name: PR Comments
 
 on:
-  pull_request_target:
+  pull_request:
     branches:
       - master
 
-permissions:
-  pull-requests: write
-
 jobs:
   backend-tests-and-coverage:
     runs-on: ubuntu-latest
@@ -56,10 +53,8 @@ jobs:
         uses: MishaKav/pytest-coverage-comment@v1
         with:
           pytest-xml-coverage-path: ./reports/code-cov/coverage.xml
-          junitxml-path: ./reports/pytest/test_report.xml
-          junitxml-title: Pytest Report
-          title: Python Coverage Report
-          badge-title: Python Code Coverage
+          title: Backend Code Coverage Report
+          badge-title: Coverage
           report-only-changed-files: true
           xml-skip-covered: true
           remove-link-from-badge: true
@@ -121,7 +116,7 @@ jobs:
         uses: MishaKav/jest-coverage-comment@v1
         with:
           coverage-summary-path: ./reports/jest/coverage-summary.json
-          summary-title: UI Coverage Report
+          summary-title: UI Code Coverage Report
           badge-title: Coverage
           hide-comment: false
           create-new-comment: false