Skip to content

Added codecov token in cleartext #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/test-go-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,22 @@ jobs:
run: task go:test

- name: Send unit tests coverage to Codecov
if: runner.os == 'Linux'
if: runner.os == 'Linux' && github.repository == 'arduino/pluggable-discovery-protocol-handler'
uses: codecov/codecov-action@v3
with:
# A token is used to avoid intermittent spurious job failures caused by rate limiting.
token: d2497f03-291d-4e0c-9d31-d94614ed7c16
file: ${{ matrix.module.path }}coverage_unit.txt
flags: ${{ matrix.module.codecov-flags }}
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: ${{ github.repository == 'arduino/pluggable-discovery-protocol-handler' }}
fail_ci_if_error: true

- name: Send unit tests coverage to Codecov (run from a fork)
if: runner.os == 'Linux' && github.repository != 'arduino/pluggable-discovery-protocol-handler'
uses: codecov/codecov-action@v3
with:
# use repository variable CODECOV_TOKEN if running from a fork.
# codecov/codecov-action does unauthenticated upload if empty string is passed via the `token` input.
token: ${{ vars.CODECOV_TOKEN }}
file: ${{ matrix.module.path }}coverage_unit.txt
flags: ${{ matrix.module.codecov-flags }}
fail_ci_if_error: false