Skip to content

Commit 2902eea

Browse files
committed
Checkout main instead of PR's base for the post-pr-comments job
1 parent 56fa196 commit 2902eea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/pr-checks.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ jobs:
241241
- name: Checkout repository
242242
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
243243
with:
244-
# Check out the base ref, not the PR's head, since this job runs with
244+
# Check out main, not the PR's head, since this job runs with
245245
# `pull-requests: write` permissions and must not execute untrusted code from the PR.
246-
ref: ${{ github.event.pull_request.base.sha }}
246+
ref: main
247247
sparse-checkout: |
248248
pr-checks
249249
.github/actions/post-comment

0 commit comments

Comments
 (0)