From 89c51488736916594211510dd34f036d0c987733 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 25 Feb 2025 10:44:14 +0100 Subject: [PATCH] Revert "remove need for hard coded token (#9136)" (#9177) This reverts commit 9f236f5ce9866513354a9e5e138507a9d7151b09. --- .github/workflows/qc_checks.yaml | 8 +++++--- src/frontend/vite.config.ts | 6 ++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index a84c418c74..2e335d312f 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -340,7 +340,7 @@ jobs: uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v5.3.1 if: always() with: - use_oidc: true + token: ${{ secrets.CODECOV_TOKEN }} slug: inventree/InvenTree flags: backend @@ -483,7 +483,7 @@ jobs: uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v5.3.1 if: always() with: - use_oidc: true + token: ${{ secrets.CODECOV_TOKEN }} slug: inventree/InvenTree flags: migrations @@ -615,10 +615,12 @@ jobs: uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v5.3.1 if: always() with: - use_oidc: true + token: ${{ secrets.CODECOV_TOKEN }} slug: inventree/InvenTree flags: pui - name: Upload bundler info + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} run: | cd src/frontend yarn install diff --git a/src/frontend/vite.config.ts b/src/frontend/vite.config.ts index 3abf637a88..8e1e732a06 100644 --- a/src/frontend/vite.config.ts +++ b/src/frontend/vite.config.ts @@ -43,11 +43,9 @@ export default defineConfig({ requireEnv: true }), codecovVitePlugin({ - enableBundleAnalysis: true, + enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined, bundleName: 'pui_v1', - oidc: { - useGitHubOIDC: true - } + uploadToken: process.env.CODECOV_TOKEN }) ], build: {