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

feat: fallback to tokenless on use_oidc if we can't find IDToken #1406

Closed

Conversation

joseph-sentry
Copy link
Contributor

@joseph-sentry joseph-sentry commented May 1, 2024

Copy link

codecov bot commented May 1, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 91.31%. Comparing base (5a299d1) to head (eb10bad).

Files Patch % Lines
src/buildExec.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1406      +/-   ##
==========================================
+ Coverage   91.29%   91.31%   +0.02%     
==========================================
  Files           4        4              
  Lines         310      311       +1     
  Branches       84       84              
==========================================
+ Hits          283      284       +1     
  Misses         27       27              
Flag Coverage Δ
demo 91.31% <0.00%> (+0.02%) ⬆️
macos-latest 91.31% <0.00%> (+0.02%) ⬆️
macos-latest-xlarge 91.31% <0.00%> (+0.02%) ⬆️
script 91.31% <0.00%> (+0.02%) ⬆️
ubuntu-latest 91.31% <0.00%> (+0.02%) ⬆️
version ?
windows-latest 91.31% <0.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@joseph-sentry joseph-sentry requested a review from a team May 1, 2024 15:17
`Codecov: Failed to get OIDC token with url: ${url}. ${err.message}`,
true,
`Codecov: Failed to get OIDC token with url, uploading using tokenless: ${url}. ${err.message}`,
false,
Copy link
Contributor

Choose a reason for hiding this comment

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

I dont think we should silently fail this and go to tokenless. If anything, we should follow the failCi set.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually on second thought, I don't know why we don't fail if we don't find OIDC. This is an opt-in feature.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this makes sense for public repos that use OIDC for CI that run on branches on that repo, but may also receive forks from external contributors that won't have an id token, and will need to use tokenless

Copy link
Contributor

Choose a reason for hiding this comment

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

@joseph-sentry please see #1404

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, missed that, that works, I'll close this one then!

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.

Fix GH rate limit issues experienced by contributors forking open source repos that have Codecov Installed
2 participants