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

Incremental baseline #6858

Open
asaf92-legit opened this issue Nov 20, 2024 · 0 comments
Open

Incremental baseline #6858

asaf92-legit opened this issue Nov 20, 2024 · 0 comments
Labels
contribution requested This is a great feature idea, but we will need a contribution to get it added to Checkov.

Comments

@asaf92-legit
Copy link

Describe the feature

Allow the creation of a baseline from a scan that uses a baseline, without ignoring the failed checks in the baseline in the new created baseline file. Currently we can use --baseline and --create-baseline together, but running a scan using the new baseline will show the previously omitted findings.

Examples

  • Run checkov with --create-baseline and find result "A".
  • Repo changed
  • Run checkov with --baseline and --create-baseline

Currently it prints Created a checkov baseline file at /path/to/.checkov.baselineBaseline analysis report using ./.checkov.baseline - only new failed checks with respect to the baseline are reported. Running another checkov scan with --baseline .checkov.baseline will lead to the older findings from the original baseline being reported.

I suggest adding an option to end up with a new .checkov.baseline file that has the findings from both scans. The motivation is that we want to avoid running checkov twice (once to get the filtered findings, and once to create a combined baseline).

@asaf92-legit asaf92-legit added the contribution requested This is a great feature idea, but we will need a contribution to get it added to Checkov. label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution requested This is a great feature idea, but we will need a contribution to get it added to Checkov.
Projects
None yet
Development

No branches or pull requests

1 participant