Skip to content

Commit

Permalink
fix token passing
Browse files Browse the repository at this point in the history
  • Loading branch information
BYK committed Jan 10, 2025
1 parent dc7618b commit 15a53fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ jobs:

- name: Use action from local checkout
uses: './'
with:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Inspect failure
if: failure()
Expand Down
10 changes: 7 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ inputs:
image_url:
required: false
description: "The URL to the built relay, snuba, sentry image to test against."
CODECOV_TOKEN:
required: false
description: "The Codecov token to upload coverage."

runs:
using: "composite"
Expand Down Expand Up @@ -134,12 +137,13 @@ runs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
if: inputs.CODECOV_TOKEN
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ inputs.CODECOV_TOKEN }}
slug: getsentry/self-hosted

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
if: !cancelled() && inputs.CODECOV_TOKEN
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ inputs.CODECOV_TOKEN }}

0 comments on commit 15a53fe

Please sign in to comment.