diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fda1548..aadc387 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,17 @@ jobs: strategy: matrix: python-version: [3.9, "3.10", 3.11] - os: [ubuntu-latest, macos-latest, windows-latest] - runs-on: ${{ matrix.os }} + platform: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.platform }} + + permissions: + # Gives the action the necessary permissions for publishing new + # comments in pull requests. + pull-requests: write + # Gives the action the necessary permissions for pushing data to the + # python-coverage-comment-action branch, and for editing existing + # comments (to avoid publishing multiple comments in the same PR) + contents: write steps: - uses: actions/checkout@v2