From a0a823655f9b9c60f43504fad2c2540fd8ccac61 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Wed, 16 Aug 2023 11:21:26 +0100 Subject: [PATCH] Fix forks code reference in code coverage The code coverage report was being shown incorrectly for PRs derived from forks. --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b412df1c01..4aed8ac614 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -206,6 +206,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} - name: Set up Python 3.10 uses: actions/setup-python@v3 with: