From 3f119eba0d10d454affb4b1f381b8a31f887917b Mon Sep 17 00:00:00 2001 From: Oscar Vestlie Date: Fri, 21 Jul 2023 11:25:01 -0700 Subject: [PATCH] Use pull-request permission b/290997541 --- .github/workflows/unit_test_report.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_test_report.yaml b/.github/workflows/unit_test_report.yaml index 63243c74e12ff..ebff39f1ca319 100644 --- a/.github/workflows/unit_test_report.yaml +++ b/.github/workflows/unit_test_report.yaml @@ -24,7 +24,7 @@ on: jobs: unit-test-report: permissions: - issues: write + pull-requests: write if: always() runs-on: ubuntu-latest name: Upload Unit Test Reports @@ -129,6 +129,8 @@ jobs: repo : context.repo.repo, run_id : context.runId })).data; + + // Comment on each pull request in the trigger event. context.payload.workflow_run.pull_requests.forEach(pr => { github.rest.issues.createComment({ issue_number: pr.number,