From 068cf6a49a3ca459f5a47031df091668fa70e9f8 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Mon, 10 Jun 2024 14:00:44 +0100 Subject: [PATCH] ci: update comment bit to also work on PRs from forks Reference: https://github.com/marocchino/sticky-pull-request-comment/issues/930#issuecomment-1515431005 --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9e4f774..10db7e6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: - development - experimental - 'test*' - pull_request: + pull_request_target: branches: - master - development @@ -18,6 +18,8 @@ jobs: build: runs-on: ubuntu-latest + permissions: + pull-requests: write strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] @@ -67,7 +69,7 @@ jobs: - name: Add Coverage PR Comment uses: marocchino/sticky-pull-request-comment@v2 - if: ${{ github.event_name == 'pull_request' && matrix.python-version == '3.12' }} + if: ${{ github.event_name == 'pull_request_target' && matrix.python-version == '3.12' }} with: recreate: true path: code-coverage-results.md