Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Conversation

@JerrySentry
Copy link
Contributor

@JerrySentry JerrySentry commented Feb 3, 2025

fixes: https://github.com/codecov/internal-issues/issues/1131

Sentry link: https://codecov.sentry.io/issues/5863119462/?project=5215654

  • Instead of checking the full ISS string matches, we check that the hostname is matching, some times we get values like https://token.actions.githubusercontent.com/company-name, we don't need to worry about the rest of the path of the URL
  • Can't do this line github_enterprise_url = re.sub(r"/+$", "", github_enterprise_url) when github_enterprise_url is not set in the config. The change will raise a validation error if it is not set, in the auth class it will be considered a failed auth when this happens.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-notifications
Copy link

codecov-notifications bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.96%. Comparing base (8f444ba) to head (5b3258b).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2025

✅ All tests successful. No failed tests were found.

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov

@codecov
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.06%. Comparing base (8f444ba) to head (5b3258b).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1121   +/-   ##
=======================================
  Coverage   96.06%   96.06%           
=======================================
  Files         837      837           
  Lines       19767    19771    +4     
=======================================
+ Hits        18989    18993    +4     
  Misses        778      778           
Flag Coverage Δ
unit 95.96% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 95.96% <100.00%> (+<0.01%) ⬆️

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.

@JerrySentry JerrySentry marked this pull request as ready for review February 3, 2025 16:01
@JerrySentry JerrySentry requested a review from a team as a code owner February 3, 2025 16:01
token = jwt.encode(
{
"iss": "https://token.actions.githubusercontent.com",
"iss": "https://token.actions.githubusercontent.com/abcdefg",
Copy link
Member

Choose a reason for hiding this comment

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

💯

@JerrySentry JerrySentry added this pull request to the merge queue Feb 5, 2025
Merged via the queue into main with commit 5b40741 Feb 5, 2025
19 checks passed
@JerrySentry JerrySentry deleted the feb_03_fix_token_retrieval branch February 5, 2025 14:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants