mitre/review
Checks if GitHub PRs receive an approving review prior to merge.
Parameter | Type | Explanation |
---|---|---|
percent-threshold | Float | Percentage of merged PRs without a review which is permissible. |
(lte
(divz
(count (filter (eq #f) $))
(count $))
{config.percent-threshold or 0.05})
mitre/review
Returns an array of booleans, indicating true for each PR if an approving review was received.
Review analysis looks at whether pull requests on GitHub (currently the only supported remote host for this analysis) receive at least one review prior to being merged.
If too few pull requests receive review prior to merging, then this analysis will flag that as a supply chain risk.
This works with the GitHub API, and requires a token in the configuration. Hipcheck only needs permissions for accessing public repository data, so those are the only permissions to assign to your generated token.