From 19f1fad7dd57a3b32e9016974b30f81e2060adc3 Mon Sep 17 00:00:00 2001 From: Tyler Beebe Date: Thu, 19 Nov 2026 18:08:14 +0000 Subject: [PATCH] ci: upload with analytics-uploader@main, a v2 API key and a test collection analytics-uploader's main is v3, which takes only a v2 API key and requires a test collection. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/main.yaml | 5 +++-- .github/workflows/pr.yaml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7ecaa0c..06c0bc2 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -36,9 +36,10 @@ jobs: # Establish the main-branch baseline that Trunk Flaky Tests compares # PR runs against. Runs even if tests fail so flakes/failures are visible. if: "!cancelled()" - uses: trunk-io/analytics-uploader@v2 + uses: trunk-io/analytics-uploader@main with: junit-paths: ${{ github.workspace }}/target/nextest/ci/*junit.xml org-slug: trunk - token: ${{ secrets.TRUNK_PROD_ORG_API_TOKEN }} + token: ${{ secrets.TRUNK_PROD_V2_TEST_UPLOAD_TOKEN }} + test-collection-id: HilUwBm9 continue-on-error: true diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 21c6544..a950ac9 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -26,11 +26,12 @@ jobs: - name: Upload test results # Run this step even if the test step ahead fails if: "!cancelled()" - uses: trunk-io/analytics-uploader@v2 + uses: trunk-io/analytics-uploader@main with: junit-paths: ${{ github.workspace }}/target/nextest/ci/*junit.xml org-slug: trunk - token: ${{ secrets.TRUNK_PROD_ORG_API_TOKEN }} + token: ${{ secrets.TRUNK_PROD_V2_TEST_UPLOAD_TOKEN }} + test-collection-id: HilUwBm9 continue-on-error: true trunk_check_runner: