Skip to content

Commit

Permalink
fix: codecov token passing
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Jun 20, 2024
1 parent 3c91268 commit bb206e0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
description: Minimum coverage percentage
required: false
default: '0'
token:
description: Codecov token
required: true

runs:
using: composite
Expand All @@ -29,7 +32,7 @@ runs:
with:
name: ${{ inputs.coverage != '' }}
files: ./${{ inputs.directory }}/coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ inputs.token }}

- uses: VeryGoodOpenSource/very_good_coverage@c953fca3e24a915e111cc6f55f03f756dcb3964c # pin@v3.0.0
if: ${{ inputs.coverage != '' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
- uses: ./.github/actions/coverage
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: dart
coverage: sentry
min-coverage: 85
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- uses: ./.github/actions/coverage
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: dio
coverage: sentry_dio
min-coverage: 81
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- uses: ./.github/actions/coverage
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: file
coverage: sentry_file
min-coverage: 55
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
- uses: ./.github/actions/coverage
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: hive
coverage: sentry_hive
min-coverage: 55
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/logging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- uses: ./.github/actions/coverage
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: logging
coverage: sentry_logging
min-coverage: 90
Expand Down

0 comments on commit bb206e0

Please sign in to comment.