From 8e7db342bc55fba6acaec48ef428d4ef70738b23 Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Wed, 26 Jun 2024 13:42:23 -0400 Subject: [PATCH] use pull_request_target to fix permissions issue when attempting to comment on PR --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee811d76..6f233d1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ on: - main tags: - "*" - pull_request: + pull_request_target: schedule: # Weekly Monday 9AM build # * is a special character in YAML so you have to quote this string @@ -44,7 +44,7 @@ jobs: - linux: py311-romancal-xdist report_diff_coverage: needs: [ test ] - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request_target' runs-on: ubuntu-latest steps: - uses: actions/setup-python@v5