Skip to content

Commit 4cb72cf

Browse files
authored
ci: fix coverage upload (#637)
Ensure that the coverage upload token is passed correctly. Signed-off-by: Ramkumar Chinchani <[email protected]>
1 parent f52ce15 commit 4cb72cf

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/build.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
type: boolean
2727
description: 'Should slow tests be run?'
2828
default: true
29+
secrets:
30+
codecov_token:
31+
required: true
2932

3033
jobs:
3134
build:
@@ -100,7 +103,7 @@ jobs:
100103
- name: Upload code coverage
101104
uses: codecov/codecov-action@v4
102105
with:
103-
token: ${{ secrets.CODECOV_TOKEN }}
106+
token: ${{ secrets.codecov_token }}
104107
- name: Upload artifacts
105108
uses: actions/upload-artifact@v3
106109
if: ${{ matrix.privilege-level == 'priv' }}

.github/workflows/ci.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ jobs:
1313
uses: ./.github/workflows/build.yaml
1414
with:
1515
slow-test: false
16+
secrets:
17+
codecov_token: ${{ secrets.CODECOV_TOKEN }}
1618
coverage:
1719
uses: ./.github/workflows/coverage.yaml
1820
with:
1921
slow-test: false
22+
secrets:
23+
codecov_token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/coverage.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
type: boolean
2727
description: 'Should slow tests be run?'
2828
default: true
29+
secrets:
30+
codecov_token:
31+
required: true
2932

3033
jobs:
3134
build:
@@ -97,7 +100,7 @@ jobs:
97100
- name: Upload code coverage
98101
uses: codecov/codecov-action@v4
99102
with:
100-
token: ${{ secrets.CODECOV_TOKEN }}
103+
token: ${{ secrets.codecov_token }}
101104
files: coverage-${{ matrix.privilege-level}}.txt
102105
- name: Upload artifacts
103106
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)