Skip to content

Commit 3ac429b

Browse files
fix: pass CODECOV_TOKEN to codecov uploader to avoid rate limit issues (#932)
**Description**: This PR updates the Unit Tests GitHub Actions workflow (`.github/workflows/test.yml`) for `auth0-react` to explicitly provide the `CODECOV_TOKEN` to the Codecov action. **Background**: - Previously, the Codecov uploader often failed due to hitting rate limits. - Logs showed `No token specified or token is empty`, meaning the workflow wasn’t using the secret. - Because the uploader exits with status code 0, the workflow appeared green even when coverage wasn’t uploaded. **Changes**: - Added token: ${{ secrets.CODECOV_TOKEN }} to the Upload coverage step. - This ensures the uploader authenticates properly with Codecov and avoids rate limiting issues. **Impact**: - Coverage reports should now reliably upload in GitHub Actions for PRs and pushes to main. - Failures due to rate limiting should no longer occur.
2 parents b93de35 + 40a9580 commit 3ac429b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,5 @@ jobs:
6161

6262
- name: Upload coverage
6363
uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # [email protected]
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)