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

fix: TA tokenless uploads#1187

Merged
joseph-sentry merged 1 commit intomainfrom
joseph/fix-ta-tokenless
Mar 6, 2025
Merged

fix: TA tokenless uploads#1187
joseph-sentry merged 1 commit intomainfrom
joseph/fix-ta-tokenless

Conversation

@joseph-sentry
Copy link
Copy Markdown
Contributor

@joseph-sentry joseph-sentry commented Mar 3, 2025

previously it was broken because it was trying to get the repository and commit information from the request path, when TA requests store that information in the body. So we take the same modifications that the BA tokenless authentication made but change the service to be fetched from the "service" key instead of the "git_service" key

Fixes: codecov/codecov-action#1762

@joseph-sentry joseph-sentry requested a review from a team as a code owner March 3, 2025 20:03
@codecov-notifications
Copy link
Copy Markdown

codecov-notifications bot commented Mar 3, 2025

Codecov Report

Attention: Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
codecov_auth/authentication/repo_auth.py 84.21% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 3, 2025

Codecov Report

Attention: Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.

Project coverage is 95.86%. Comparing base (5df99ba) to head (2d4a7f5).
Report is 7 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
codecov_auth/authentication/repo_auth.py 84.21% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1187      +/-   ##
==========================================
- Coverage   95.88%   95.86%   -0.02%     
==========================================
  Files         493      493              
  Lines       16851    16870      +19     
==========================================
+ Hits        16157    16173      +16     
- Misses        694      697       +3     
Flag Coverage Δ
unit 95.86% <84.21%> (-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.

Copy link
Copy Markdown
Contributor

@adrian-codecov adrian-codecov left a comment

Choose a reason for hiding this comment

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

I checked w/ Shelter's logic and it seems to be aligned. Could you double check thought? Should start at get_token, then should go to tokenless_allowed, and then should go to _tokenless_v2_allowed (and that's the logic that should be on par). This assumes you also accept the newest "true tokenless" method as well btw, so just confirming that's fine too

@joseph-sentry
Copy link
Copy Markdown
Contributor Author

This assumes you also accept the newest "true tokenless" method as well btw, so just confirming that's fine too
@adrian-codecov yeah i think that's covered

actually looking at _tokenless_v2_allowed i think this line might also apply to TA, so that's a change we should make alongside this one, to keep things secure

@joseph-sentry joseph-sentry force-pushed the joseph/fix-ta-tokenless branch from e632125 to 2d4a7f5 Compare March 4, 2025 20:54
@joseph-sentry joseph-sentry added this pull request to the merge queue Mar 6, 2025
Merged via the queue into main with commit f77e387 Mar 6, 2025
23 of 28 checks passed
@joseph-sentry joseph-sentry deleted the joseph/fix-ta-tokenless branch March 6, 2025 18:33
@JerrySentry JerrySentry restored the joseph/fix-ta-tokenless branch March 12, 2025 13:45
JerrySentry added a commit that referenced this pull request Mar 12, 2025
@overwatch-beta
Copy link
Copy Markdown

overwatch-beta bot commented Mar 12, 2025

✅ Sentry found no issues in your recent changes ✅

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.

testAnalysis comment on a pull request from a fork

2 participants