diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index d4acdc136..e7980ee92 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -22,6 +22,8 @@ jobs: with: fetch-depth: 0 persist-credentials: false + # head commit, not merge commit in the case of PRs + ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: