Skip to content
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

Resolve token not found issues in codecov uploads #52

Merged

Conversation

peterzhuamazon
Copy link
Member

@peterzhuamazon peterzhuamazon commented Jan 30, 2025

Description

Resolve token not found issues in codecov uploads
Seems like by design it will not support PRs raise from fork.
https://github.com/codecov/codecov-action/blame/3e260409808a9d6e480e7d31aed41224fbcbf201/README.md#L92

And they have removed the tokenless upload here:
https://docs.codecov.com/docs/codecov-uploader#supporting-token-less-uploads-for-forks-of-open-source-repos-using-codecov

codecov/codecov-action#1293

The solution is actually switch to v5 then regenerate the codecov token and mysteriously the upload is fine......

Issues Resolved

Closes #10

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
@peterzhuamazon peterzhuamazon marked this pull request as draft January 30, 2025 20:05
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.56%. Comparing base (0fead9b) to head (9fb6dc2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #52   +/-   ##
=======================================
  Coverage   99.56%   99.56%           
=======================================
  Files          11       11           
  Lines         228      228           
  Branches       36       36           
=======================================
  Hits          227      227           
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@peterzhuamazon peterzhuamazon marked this pull request as ready for review January 30, 2025 20:16
@peterzhuamazon peterzhuamazon merged commit 2f012da into opensearch-project:main Jan 30, 2025
9 checks passed
@peterzhuamazon peterzhuamazon deleted the fix-token-upload branch January 30, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Enhancement] Add codecov
2 participants