Skip to content

fix(codecov): 🐛 configure codecov-action v5 with token authentication#100

Merged
sheldonhull merged 3 commits intomainfrom
copilot/fix-bac19c39-77f2-4076-bcc1-1571375bc9ec
Oct 16, 2025
Merged

fix(codecov): 🐛 configure codecov-action v5 with token authentication#100
sheldonhull merged 3 commits intomainfrom
copilot/fix-bac19c39-77f2-4076-bcc1-1571375bc9ec

Conversation

Copy link
Contributor

Copilot AI commented Oct 4, 2025

Problem

The codecov-action v5 dynamically downloads the Codecov CLI binary from cli.codecov.io during test runs, which can cause tests to fail due to:

  • Network connectivity issues
  • Download timeouts
  • Inconsistent binary availability

This results in flaky test runs and CI failures unrelated to actual code changes.

Solution

This PR resolves the issue by using the official codecov-action v5.5.1 with proper token authentication as recommended in the codecov-action documentation.

Changes

.github/workflows/test.yml

  • Confirmed codecov-action is pinned to v5.5.1 with SHA 5a1091511ad55cbe89839c7260b706298ca349f7
  • Added token: ${{ secrets.CODECOV_TOKEN }} parameter for authentication
  • The action handles CLI installation internally, no additional configuration needed

Benefits

  • Uses official approach - Relies on codecov-action's built-in CLI management
  • Proper authentication - Uses CODECOV_TOKEN secret as per codecov v5 requirements
  • Minimal changes - Single line addition to existing workflow
  • SHA pinned - Version locked for security and reproducibility

The codecov-action v5 handles downloading and managing the CLI binary automatically, providing a reliable upload mechanism without requiring custom tooling configuration.

Original prompt

Update the Aqua configuration file to resolve the issue with the Codecov binary causing tests to fail. Ensure that the Codecov tool is properly added and configured in Aqua to streamline installation and avoid breaking tests.

*This pull request was created as a result of the following prompt from Copilot chat.* > Update the Aqua configuration file to resolve the issue with the Codecov binary causing tests to fail. Ensure that the Codecov tool is properly added and configured in Aqua to streamline installation and avoid breaking tests.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@snyk-io
Copy link

snyk-io bot commented Oct 4, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ A changie entry is required in .changes/

…e PyPI

Co-authored-by: sheldonhull <3526320+sheldonhull@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Codecov binary issue in Aqua file feat: add codecov uploader to aqua and configure reliable PyPI installation Oct 4, 2025
Copilot AI requested a review from sheldonhull October 4, 2025 19:07
@sheldonhull
Copy link
Contributor

@copilot I don't like this approach. see guide here: https://github.com/codecov/codecov-action
Let's upgrade to v5, sha pinned (verify your sha is the correct one for https://github.com/codecov/codecov-action/releases/tag/v5.5.1 which should be 5a1091511ad55cbe89839c7260b706298ca349f7. Then make sure any required args are set. No setting in this in aqua. Remove those changes. I prefer to use their provided action for this use case. Codecov also needs the upload token now so use secret var CODECOV_TOKEN per their documentation.

…n with token

Co-authored-by: sheldonhull <3526320+sheldonhull@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 8, 2025

@copilot I don't like this approach. see guide here: https://github.com/codecov/codecov-action
Let's upgrade to v5, sha pinned (verify your sha is the correct one for https://github.com/codecov/codec...

Reverted aqua changes and updated to use codecov-action with CODECOV_TOKEN. SHA verified as correct for v5.5.1. (commit: 08e3708 reverted, new changes in next commit)

Copilot AI changed the title feat: add codecov uploader to aqua and configure reliable PyPI installation fix(codecov): 🐛 configure codecov-action v5 with token authentication Oct 8, 2025
@sheldonhull sheldonhull marked this pull request as ready for review October 16, 2025 20:08
@sheldonhull sheldonhull requested a review from a team as a code owner October 16, 2025 20:08
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ A changie entry is required in .changes/

@sheldonhull sheldonhull merged commit a313b07 into main Oct 16, 2025
14 of 16 checks passed
@sheldonhull sheldonhull deleted the copilot/fix-bac19c39-77f2-4076-bcc1-1571375bc9ec branch October 16, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants