diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 885817f7f..ab8540291 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -1,7 +1,7 @@ name: PR Validation on: - pull_request: + pull_request_target: branches: - main paths: @@ -25,6 +25,7 @@ jobs: - name: Checkout code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - name: Setup Bun