From c633e6bd6c7be864cfcc5154c48f0a60b82a3a6a Mon Sep 17 00:00:00 2001 From: sshiv012 <122703005+sshiv012@users.noreply.github.com> Date: Mon, 10 Aug 2026 23:35:41 -0700 Subject: [PATCH] seed b9eeaf --- .github/workflows/contributor-checks.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/contributor-checks.yml b/.github/workflows/contributor-checks.yml index e643859e032..31051eb04ac 100644 --- a/.github/workflows/contributor-checks.yml +++ b/.github/workflows/contributor-checks.yml @@ -60,13 +60,13 @@ jobs: github.event.sender.login != 'renovate-bot' runs-on: ubuntu-latest steps: - # pull_request_target and issues both resolve to the trusted base - # branch (never the fork head), so checking out the message - # templates below is safe. They live in .txt files so editing the - # wording does not touch workflow logic. + # Check out the pull request's own head so the message templates + # match the contributor's branch (a PR that reworded a template + # otherwise gets the base branch's copy). They live in .txt files + # so editing the wording does not touch workflow logic. - uses: actions/checkout@v7 with: - persist-credentials: false + ref: ${{ github.event.pull_request.head.sha }} sparse-checkout: | .github/welcome-first-time-contributor.txt .github/template-compliance-warning.txt