Skip to content

Commit

Permalink
Update codecov-action to v4 for tokenless uploads from forked repos
Browse files Browse the repository at this point in the history
codecov-action now requires token for upload. However, v4 supports
tokeless uploads from PRs on forked repos. Hence, this adds the
token env var for codecov-action and updates the version to v4.
  • Loading branch information
rajulkumar committed Jun 3, 2024
1 parent 2c4f5dd commit 8a68e4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tox-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
- name: Run Tox
run: tox -e cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true
verbose: true
Expand Down

0 comments on commit 8a68e4d

Please sign in to comment.