Skip to content

Commit

Permalink
remove need for hard coded token (#9136)
Browse files Browse the repository at this point in the history
  • Loading branch information
matmair authored Feb 24, 2025
1 parent 991b578 commit 9f236f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/qc_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ jobs:
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # [email protected]
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true
slug: inventree/InvenTree
flags: backend

Expand Down Expand Up @@ -483,7 +483,7 @@ jobs:
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # [email protected]
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true
slug: inventree/InvenTree
flags: migrations

Expand Down Expand Up @@ -615,12 +615,10 @@ jobs:
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # [email protected]
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
Expand Down
6 changes: 4 additions & 2 deletions src/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 9f236f5

Please sign in to comment.