Skip to content

Commit

Permalink
Use pull-request permission
Browse files Browse the repository at this point in the history
b/290997541
  • Loading branch information
oxve committed Jul 21, 2023
1 parent 56631d4 commit 3f119eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/unit_test_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3f119eb

Please sign in to comment.