From 12a4d4095798c4720447816f4e834bd038faee58 Mon Sep 17 00:00:00 2001 From: Eduard van Valkenburg Date: Mon, 16 Dec 2024 10:04:04 +0100 Subject: [PATCH] Python: add write token to report (#9980) ### Motivation and Context The coverage report write job did not have the right permissions yet. ### Description ### Contribution Checklist - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone :smile: --- .github/workflows/python-test-coverage-report.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/python-test-coverage-report.yml b/.github/workflows/python-test-coverage-report.yml index f63b81c18d77..01a2c7dc48e8 100644 --- a/.github/workflows/python-test-coverage-report.yml +++ b/.github/workflows/python-test-coverage-report.yml @@ -6,6 +6,10 @@ on: types: - completed +permissions: + contents: read + pull-requests: write + jobs: python-test-coverage-report: runs-on: ubuntu-latest @@ -37,6 +41,7 @@ jobs: id: coverageComment uses: MishaKav/pytest-coverage-comment@main with: + github-token: ${{ secrets.GH_ACTIONS_PR_WRITE }} issue-number: ${{ env.PR_NUMBER }} pytest-coverage-path: python/python-coverage.txt title: "Python Test Coverage Report"