From bb5255ae3589c3a7ab635167a3503856dfe37c52 Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Fri, 21 Nov 2025 19:11:15 -0800 Subject: [PATCH 1/6] Use official download-artifact to fix the test_report action --- .github/workflows/test_report.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_report.yml b/.github/workflows/test_report.yml index 9ab69af42c818..33119d6026226 100644 --- a/.github/workflows/test_report.yml +++ b/.github/workflows/test_report.yml @@ -28,14 +28,16 @@ jobs: test_report: if: github.event.workflow_run.conclusion != 'skipped' runs-on: ubuntu-latest + permissions: + actions: read + contents: read steps: - name: Download test results to report - uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # pin @v6 + uses: actions/download-artifact@v5 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - workflow: ${{ github.event.workflow_run.workflow_id }} - commit: ${{ github.event.workflow_run.head_commit.id }} - workflow_conclusion: completed + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id }} + pattern: "**/test-reports/*.xml" - name: Publish test report uses: scacap/action-surefire-report@a2911bd1a4412ec18dde2d93b1758b3e56d2a880 # pin @v1.8.0 with: From 0436512faa1993af47b530b292629bec2716e032 Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Sat, 22 Nov 2025 00:01:15 -0800 Subject: [PATCH 2/6] 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 41a377aea499837ca8014660b436bb2da6a8b027 Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Sat, 22 Nov 2025 00:02:04 -0800 Subject: [PATCH 3/6] Change pattern (#2) --- .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 4/6] 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 }} From f61c09da12ab3c2f7c49d2e6791fc1434c916ada Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Sat, 22 Nov 2025 11:17:33 -0800 Subject: [PATCH 5/6] Fix report action (#3) * 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 }} From 8460b721b4447d33b935664f2b8cde4bbf8ecd0e Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Sat, 22 Nov 2025 11:24:10 -0800 Subject: [PATCH 6/6] Fix typo --- .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 c237501a22024..d0e2ac8fe569e 100644 --- a/.github/workflows/test_report.yml +++ b/.github/workflows/test_report.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest permissions: actions: read - check: write + checks: write contents: read steps: - name: Download test results to report