-
Notifications
You must be signed in to change notification settings - Fork 508
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
🐛 Ensure CODEOWNERS file exists for corresponding Branch-Protection check #2463
🐛 Ensure CODEOWNERS file exists for corresponding Branch-Protection check #2463
Conversation
Integration tests success for |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2463 +/- ##
==========================================
- Coverage 39.95% 39.92% -0.04%
==========================================
Files 122 122
Lines 9815 9852 +37
==========================================
+ Hits 3922 3933 +11
- Misses 5612 5637 +25
- Partials 281 282 +1 |
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.
LGTM, thanks.
Integration tests success for |
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.
Thanks!
Can you also add the raw result changes to pkg/json_raw_results.go?
* If CODEOWNERS file doesn't exist, CODEOWNERS branch protection is not in effect even if the setting is enabled Signed-off-by: Raghav Kaul <[email protected]>
Signed-off-by: Raghav Kaul <[email protected]>
0146987
to
8719a2b
Compare
Integration tests success for |
Integration tests success for |
Integration tests success for |
…heck (ossf#2463) * Ensure CODEOWNERS file exists for corresponding Branch-Protection check * If CODEOWNERS file doesn't exist, CODEOWNERS branch protection is not in effect even if the setting is enabled Signed-off-by: Raghav Kaul <[email protected]> * cr comments Signed-off-by: Raghav Kaul <[email protected]> Signed-off-by: Raghav Kaul <[email protected]> Co-authored-by: laurentsimon <[email protected]>
What kind of change does this PR introduce?
Ensure that the CODEOWNRS file exists for the corresponding Branch-Protection check by gathering a set of CODEOWNERS files in the repo. If file doesn't exist, CODEOWNERS branch protection is not in effect even if the setting is enabled. This fixes a bug where we would have incorrectly reported scores for the branch protection check.
Which issue(s) this PR fixes
Fixes #2348.