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

Get app_redirect_url from owner object rather than request params #746

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

michelletran-codecov
Copy link
Contributor

Purpose/Motivation

This is to appease the static analysis security scan to ensure that we are not directly using user input for redirect.

Links to relevant tickets

https://github.com/codecov/internal-issues/issues/645

What does this PR do?

Change which username and service we're using to generate the app url.

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.

@michelletran-codecov michelletran-codecov marked this pull request as ready for review August 12, 2024 18:07
@codecov-notifications
Copy link

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!

Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.11%. Comparing base (43f1a58) to head (206ddfd).
Report is 4 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##               main       #746   +/-   ##
===========================================
  Coverage   96.11000   96.11000           
===========================================
  Files           815        815           
  Lines         18449      18449           
===========================================
  Hits          17732      17732           
  Misses          717        717           
Flag Coverage Δ
unit 91.86% <100.00%> (ø)
unit-latest-uploader 91.86% <100.00%> (ø)

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.

@michelletran-codecov michelletran-codecov requested review from a team August 15, 2024 17:08
Copy link
Contributor

@Swatinem Swatinem left a comment

Choose a reason for hiding this comment

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

lgtm, but left a comment

codecov_auth/views/okta_cloud.py Outdated Show resolved Hide resolved
@michelletran-codecov michelletran-codecov force-pushed the 645_fix_redirection_from_external_source branch from 754bf47 to a8b3e93 Compare August 16, 2024 17:43
This is to appease the static analysis security scan to ensure that we are
not directly using user imput for redirect.
@michelletran-codecov michelletran-codecov force-pushed the 645_fix_redirection_from_external_source branch from a8b3e93 to 206ddfd Compare August 16, 2024 17:43
@michelletran-codecov michelletran-codecov added this pull request to the merge queue Aug 19, 2024
Merged via the queue into main with commit b9d1348 Aug 19, 2024
18 checks passed
@michelletran-codecov michelletran-codecov deleted the 645_fix_redirection_from_external_source branch August 19, 2024 13:46
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.

2 participants