Skip to content

Commit

Permalink
ci: pass token to Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Apr 30, 2024
1 parent 282b65c commit 07f48ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,5 @@ jobs:
check-latest: true
- name: Run test action
uses: ./.github/workflows/test-action
with:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/prerelease-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ jobs:
check-latest: true
- name: Run test action
uses: ./.github/workflows/test-action
with:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
release-helper:
permissions:
contents: read # to fetch code (actions/checkout)
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
name: test
description: "Runs go tests"

inputs:
codecov_token:
description: "Token for uploading coverage reports to Codecov"
required: true

runs:
using: composite
steps:
Expand All @@ -25,3 +30,5 @@ runs:
run: ./scripts/run_tests.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3.1.6
with:
token: ${{ inputs.CODECOV_TOKEN }}

0 comments on commit 07f48ad

Please sign in to comment.