Open rgreinho opened 2 years ago
When a check fails, it is most of the time possible to fix it using the GitHub API.
For example, the number of reviewers required can be updated with one REST request:
curl -s \ -X PATCH \ -H "Accept: application/vnd.github.v3+json" \ -H "Authorization: token $GITHUB_TOKEN" \ https://api.github.com/repos/buildsec/frsca/branches/main/protection/required_pull_request_reviews \ -d '{"required_approving_review_count":2}'
Attaching this snippet to the remediation explanation (https://avd.aquasec.com/compliance/softwaresupplychain/cis-1.0/cis-1.0-sourcecode/1.1) would help the end users to resolve the issue.
Hi @rgreinho, Nice suggestion, we plan to add support for adding dynamic remediation instructions soon.
@naortalmor1 - FYI
When a check fails, it is most of the time possible to fix it using the GitHub API.
For example, the number of reviewers required can be updated with one REST request:
Attaching this snippet to the remediation explanation (https://avd.aquasec.com/compliance/softwaresupplychain/cis-1.0/cis-1.0-sourcecode/1.1) would help the end users to resolve the issue.