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

[fix] Ensure repo token regeneration only checks for repos authored by current org #764

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

rohitvinnakota-codecov
Copy link
Contributor

@rohitvinnakota-codecov rohitvinnakota-codecov commented Aug 22, 2024

Purpose/Motivation

The front end sends the current org selected as part of the RegenerateRepositoryUploadToken mutation.

image

We are running into cases where a different repo with the same name can have its token updated as we are updating the first repo amongst all viewable repositories for a given org.

This PR adds a check to only select from repos that are authored by that org.

This fixes https://github.com/codecov/internal-issues/issues/712

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.

@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota/update-regen-repo-logic branch from ee0e396 to f15956b Compare August 22, 2024 01:17
@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!

@rohitvinnakota-codecov rohitvinnakota-codecov added this pull request to the merge queue Aug 22, 2024
Merged via the queue into main with commit c84212a Aug 22, 2024
16 checks passed
@rohitvinnakota-codecov rohitvinnakota-codecov deleted the rvinnakota/update-regen-repo-logic branch August 22, 2024 15:28
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.16%. Comparing base (fc63977) to head (f15956b).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##               main       codecov/engineering-team#764   +/-   ##
===========================================
  Coverage   96.16000   96.16000           
===========================================
  Files           814        814           
  Lines         18423      18423           
===========================================
  Hits          17716      17716           
  Misses          707        707           
Flag Coverage Δ
unit 91.91% <100.00%> (ø)
unit-latest-uploader 91.91% <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.

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