Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌱 Add branch protection probe evaluation (#3759)
* 🌱 Add branch protection evaluation Signed-off-by: Adam Korczynski <[email protected]> * make helper for getting the branchName Signed-off-by: Adam Korczynski <[email protected]> * move check for branch name Signed-off-by: Adam Korczynski <[email protected]> * define size of slice Signed-off-by: Adam Korczynski <[email protected]> * add probe for protected branches. Signed-off-by: Adam Korczynski <[email protected]> * change 'basicNonAdminProtection' to 'deleteAndForcePushProtection' Signed-off-by: Adam Korczynski <[email protected]> * fix markdown in text field in def.yml Signed-off-by: Adam Korczynski <[email protected]> * remove duplicate conditional Signed-off-by: Adam Korczynski <[email protected]> * remove redundant 'protected' value from 'requiresCodeOwnersReview' probe Signed-off-by: Adam Korczynski <[email protected]> * remove protected values from probes Signed-off-by: Adam Korczynski <[email protected]> * Bring back negative outcome in case of 0 codeowners files Signed-off-by: Adam Korczynski <[email protected]> * log based on whether branches are protected Signed-off-by: Adam Korczynski <[email protected]> * remove unnecessary test Signed-off-by: Adam Korczynski <[email protected]> * debug failing tests Signed-off-by: Adam Korczynski <[email protected]> * Fix failing tests Signed-off-by: Adam Korczynski <[email protected]> * rename test Signed-off-by: Adam Korczynski <[email protected]> * update to with latest upstream changes Signed-off-by: AdamKorcz <[email protected]> * fix linting issues Signed-off-by: AdamKorcz <[email protected]> * remove tests that represent impossible scenarios Signed-off-by: AdamKorcz <[email protected]> * remove protected finding value This was discussed previously, but accidentally reverted Signed-off-by: Spencer Schrock <[email protected]> * Revert "debug failing tests" This reverts commit 00acf66. Signed-off-by: Spencer Schrock <[email protected]> * use branchName key for branch name Signed-off-by: Spencer Schrock <[email protected]> * include number of reviews in INFO this was previously included by the old evaluation code Signed-off-by: Spencer Schrock <[email protected]> * reduce info count by 1 requiring codeowners without a corresponding file used to give 1 INFO and 1 WARN now it only gives 1 WARN Signed-off-by: Spencer Schrock <[email protected]> --------- Signed-off-by: Adam Korczynski <[email protected]> Signed-off-by: AdamKorcz <[email protected]> Signed-off-by: Spencer Schrock <[email protected]> Co-authored-by: Spencer Schrock <[email protected]>
- Loading branch information