2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 03:26:45 +00:00

remove need for hard coded token (#9136)

This commit is contained in:
Matthias Mair 2025-02-24 23:22:35 +01:00 committed by GitHub
parent 991b578c30
commit 9f236f5ce9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -340,7 +340,7 @@ jobs:
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v5.3.1 uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v5.3.1
if: always() if: always()
with: with:
token: ${{ secrets.CODECOV_TOKEN }} use_oidc: true
slug: inventree/InvenTree slug: inventree/InvenTree
flags: backend flags: backend
@ -483,7 +483,7 @@ jobs:
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v5.3.1 uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v5.3.1
if: always() if: always()
with: with:
token: ${{ secrets.CODECOV_TOKEN }} use_oidc: true
slug: inventree/InvenTree slug: inventree/InvenTree
flags: migrations flags: migrations
@ -615,12 +615,10 @@ jobs:
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v5.3.1 uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # pin@v5.3.1
if: always() if: always()
with: with:
token: ${{ secrets.CODECOV_TOKEN }} use_oidc: true
slug: inventree/InvenTree slug: inventree/InvenTree
flags: pui flags: pui
- name: Upload bundler info - name: Upload bundler info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: | run: |
cd src/frontend cd src/frontend
yarn install yarn install

View File

@ -43,9 +43,11 @@ export default defineConfig({
requireEnv: true requireEnv: true
}), }),
codecovVitePlugin({ codecovVitePlugin({
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined, enableBundleAnalysis: true,
bundleName: 'pui_v1', bundleName: 'pui_v1',
uploadToken: process.env.CODECOV_TOKEN oidc: {
useGitHubOIDC: true
}
}) })
], ],
build: { build: {