checkov icon indicating copy to clipboard operation
checkov copied to clipboard

Skip Multiple Checks in a single comment

Open stepintooracledba opened this issue 2 years ago • 4 comments

Describe the issue

I'm running checkov scans for my terraform config,

Say for example, my IAM Policy triggers multiple checks like

Check: CKV_AWS_355: "Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions" Check: CKV_AWS_287: "Ensure IAM policies does not allow credentials exposure"

So what I'm doing right now to skip this check is to add a skip in the resource one for each Checks like,

checkov:skip=CKV_AWS_355: Skip 1

checkov:skip=CKV_AWS_287: Skip 2

Is it possible to add the skips of multiple check in a single line rather than defining multiple checks,

checkov:skip=CKV_AWS_355,CKV_AWS_287: Skipping all checks

Version (please complete the following information):

  • Checkov Version - 2.3.343

Additional context

stepintooracledba avatar Jul 26 '23 19:07 stepintooracledba

I'm surprised that this isn't possible already. Would also love to see this added.

lagerfeuer avatar Jul 31 '23 20:07 lagerfeuer

Thanks for contributing to Checkov! We've automatically marked this issue as stale to keep our issues list tidy, because it has not had any activity for 6 months. It will be closed in 14 days if no further activity occurs. Commenting on this issue will remove the stale tag. If you want to talk through the issue or help us understand the priority and context, feel free to add a comment or join us in the Checkov slack channel at codifiedsecurity.slack.com Thanks!

stale[bot] avatar Feb 02 '24 06:02 stale[bot]

Any update please?

stepintooracledba avatar Feb 07 '24 12:02 stepintooracledba

Any way to skip multiple checks at once?

TarangGu avatar Apr 15 '24 03:04 TarangGu