From 9f236f5ce9866513354a9e5e138507a9d7151b09 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Mon, 24 Feb 2025 23:22:35 +0100 Subject: [PATCH] remove need for hard coded token (#9136) --- .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 2e335d312f..a84c418c74 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: - token: ${{ secrets.CODECOV_TOKEN }} + use_oidc: true slug: inventree/InvenTree flags: backend @@ -483,7 +483,7 @@ jobs: uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v5.3.1 if: always() with: - token: ${{ secrets.CODECOV_TOKEN }} + use_oidc: true slug: inventree/InvenTree flags: migrations @@ -615,12 +615,10 @@ jobs: uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v5.3.1 if: always() with: - token: ${{ secrets.CODECOV_TOKEN }} + use_oidc: true 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 8e1e732a06..3abf637a88 100644 --- a/src/frontend/vite.config.ts +++ b/src/frontend/vite.config.ts @@ -43,9 +43,11 @@ export default defineConfig({ requireEnv: true }), codecovVitePlugin({ - enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined, + enableBundleAnalysis: true, bundleName: 'pui_v1', - uploadToken: process.env.CODECOV_TOKEN + oidc: { + useGitHubOIDC: true + } }) ], build: {