From 0436512faa1993af47b530b292629bec2716e032 Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Sat, 22 Nov 2025 00:01:15 -0800 Subject: [PATCH 1/2] Change pattern --- .github/workflows/test_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_report.yml b/.github/workflows/test_report.yml index 33119d6026226..87bf3b3d80a73 100644 --- a/.github/workflows/test_report.yml +++ b/.github/workflows/test_report.yml @@ -37,7 +37,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} run-id: ${{ github.event.workflow_run.id }} - pattern: "**/test-reports/*.xml" + pattern: "test-*" - name: Publish test report uses: scacap/action-surefire-report@a2911bd1a4412ec18dde2d93b1758b3e56d2a880 # pin @v1.8.0 with: From 8dd9eb728f69d396c9845e2d8c002d0e538fc733 Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Sat, 22 Nov 2025 11:15:34 -0800 Subject: [PATCH 2/2] Update permissions and try to use the v1 version --- .github/workflows/test_report.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_report.yml b/.github/workflows/test_report.yml index 87bf3b3d80a73..c237501a22024 100644 --- a/.github/workflows/test_report.yml +++ b/.github/workflows/test_report.yml @@ -30,6 +30,7 @@ jobs: runs-on: ubuntu-latest permissions: actions: read + check: write contents: read steps: - name: Download test results to report @@ -39,7 +40,7 @@ jobs: run-id: ${{ github.event.workflow_run.id }} pattern: "test-*" - name: Publish test report - uses: scacap/action-surefire-report@a2911bd1a4412ec18dde2d93b1758b3e56d2a880 # pin @v1.8.0 + uses: scacap/action-surefire-report@v1 with: check_name: Report test results github_token: ${{ secrets.GITHUB_TOKEN }}