fix: restore Codecov slug to fix Repository not found error#3125
fix: restore Codecov slug to fix Repository not found error#3125PierreBrisorgueil merged 1 commit intomasterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR restores the slug parameter to the Codecov upload step in the CI workflow. The parameter is required by codecov-action@v5 to properly identify the repository when uploading coverage reports, preventing "Repository not found" errors.
Changes:
- Adds
slug: pierreb-devkit/Nodeto the Codecov upload configuration
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - name: Upload coverage reports to Codecov | ||
| uses: codecov/codecov-action@v5 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| slug: pierreb-devkit/Node |
There was a problem hiding this comment.
The Codecov upload step is missing a condition to run only for Node 22.x. According to the codebase convention (see .github/workflows/CI.yml:13-38 in memory), coverage reports should be uploaded only for the Node 22.x run to avoid duplicate uploads from the matrix build. Add an if: matrix.node-version == '22.x' condition before the uses statement.
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
Fix
Restores
slug: pierreb-devkit/Nodein the Codecov step.Without it,
codecov-action@v5cannot resolve the repository and throws:```
Upload failed: {"message":"Repository not found"}
```