From 040890657cc0d3699b7f6ab3872b6076e2b539b0 Mon Sep 17 00:00:00 2001 From: Arthur van de Vondervoort Date: Wed, 17 Jun 2026 15:29:41 +0200 Subject: [PATCH] fix: checkout repo in test-report so test-reporter can list tracked files The Test Report workflow runs via workflow_run with no checkout. With a manual download-artifact step (used to merge per-version test-results-* artifacts into one unified report), dorny/test-reporter falls back to 'git ls-files' to resolve source paths for annotations and fails with 'fatal: not a git repository'. It only uses the GitHub REST API for file listing when it downloads the artifact itself via the 'artifact:' input. Add an actions/checkout step (pinned to workflow_run.head_sha) before the download so git ls-files succeeds and annotations map to the tested commit, while preserving the single unified report. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/test-report.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml index aa9ff26..761a693 100644 --- a/.github/workflows/test-report.yml +++ b/.github/workflows/test-report.yml @@ -19,6 +19,11 @@ jobs: github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure' steps: + - name: Checkout tested commit + uses: actions/checkout@v6 + with: + ref: ${{ github.event.workflow_run.head_sha }} + - name: Download test result artifacts uses: actions/download-artifact@v8 with: