-
Notifications
You must be signed in to change notification settings - Fork 29
fix: token retrieval error when config is not setup #1121
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. 📢 Thoughts on this report? Let us know! |
|
✅ All tests successful. No failed tests were found. 📣 Thoughts on this report? Let Codecov know! | Powered by Codecov |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
| token = jwt.encode( | ||
| { | ||
| "iss": "https://token.actions.githubusercontent.com", | ||
| "iss": "https://token.actions.githubusercontent.com/abcdefg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
fixes: https://github.com/codecov/internal-issues/issues/1131
Sentry link: https://codecov.sentry.io/issues/5863119462/?project=5215654
https://token.actions.githubusercontent.com/company-name, we don't need to worry about the rest of the path of the URLgithub_enterprise_url = re.sub(r"/+$", "", github_enterprise_url)whengithub_enterprise_urlis 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.