Skip to content

Commit b87d0b3

Browse files
authored
ci: fix codecov token passing (#2121)
1 parent 3c91268 commit b87d0b3

File tree

6 files changed

+9
-1
lines changed

6 files changed

+9
-1
lines changed

.github/actions/coverage/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ inputs:
1313
description: Minimum coverage percentage
1414
required: false
1515
default: '0'
16+
token:
17+
description: Codecov token
18+
required: true
1619

1720
runs:
1821
using: composite
@@ -29,7 +32,7 @@ runs:
2932
with:
3033
name: ${{ inputs.coverage != '' }}
3134
files: ./${{ inputs.directory }}/coverage/lcov.info
32-
token: ${{ secrets.CODECOV_TOKEN }}
35+
token: ${{ inputs.token }}
3336

3437
- uses: VeryGoodOpenSource/very_good_coverage@c953fca3e24a915e111cc6f55f03f756dcb3964c # [email protected]
3538
if: ${{ inputs.coverage != '' }}

.github/workflows/dart.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
- uses: ./.github/actions/coverage
4545
if: runner.os == 'Linux' && matrix.sdk == 'stable'
4646
with:
47+
token: ${{ secrets.CODECOV_TOKEN }}
4748
directory: dart
4849
coverage: sentry
4950
min-coverage: 85

.github/workflows/dio.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- uses: ./.github/actions/coverage
4646
if: runner.os == 'Linux' && matrix.sdk == 'stable'
4747
with:
48+
token: ${{ secrets.CODECOV_TOKEN }}
4849
directory: dio
4950
coverage: sentry_dio
5051
min-coverage: 81

.github/workflows/file.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
- uses: ./.github/actions/coverage
4848
if: runner.os == 'Linux' && matrix.sdk == 'stable'
4949
with:
50+
token: ${{ secrets.CODECOV_TOKEN }}
5051
directory: file
5152
coverage: sentry_file
5253
min-coverage: 55

.github/workflows/hive.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
- uses: ./.github/actions/coverage
4747
if: runner.os == 'Linux' && matrix.sdk == 'stable'
4848
with:
49+
token: ${{ secrets.CODECOV_TOKEN }}
4950
directory: hive
5051
coverage: sentry_hive
5152
min-coverage: 55

.github/workflows/logging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- uses: ./.github/actions/coverage
4646
if: runner.os == 'Linux' && matrix.sdk == 'stable'
4747
with:
48+
token: ${{ secrets.CODECOV_TOKEN }}
4849
directory: logging
4950
coverage: sentry_logging
5051
min-coverage: 90

0 commit comments

Comments
 (0)