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

Provide a directly actionable solution whenever possible as part of the remediation #34

Open
rgreinho opened this issue Jun 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@rgreinho
Copy link
Contributor

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.

@rgreinho rgreinho changed the title Provide an directly actionable solutions whenever possible as part of the remediation Provide a directly actionable solutions whenever possible as part of the remediation Jun 27, 2022
@morwn morwn added the enhancement New feature or request label Jun 28, 2022
@rgreinho rgreinho changed the title Provide a directly actionable solutions whenever possible as part of the remediation Provide a directly actionable solution whenever possible as part of the remediation Jun 29, 2022
@morwn
Copy link
Collaborator

morwn commented Jul 18, 2022

Hi @rgreinho,
Nice suggestion, we plan to add support for adding dynamic remediation instructions soon.

@naortalmor1 - FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

3 participants
@morwn @rgreinho and others