Skip to content

feat(general): add support to check all providers #6913

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lirshindalman
Copy link
Contributor

@lirshindalman lirshindalman commented Dec 19, 2024

User description

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

add support to check

resource_types:
    - provider 

to all providers

scope:
  provider: "all"

i test with this check:

metadata:
  id: "TEST_1"
  name: "test for provider = all"
  category: "GENERAL_SECURITY"
scope:
  provider: "all"
definition:
  cond_type: attribute
  resource_types:
    - provider
  attribute: default_tags
  operator: exists

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my feature, policy, or fix is effective and works
  • New and existing tests pass locally with my changes

Generated description

Below is a concise technical summary of the changes proposed in this PR:

Extends the checks_parser.py file to support checking all providers by adding a new condition for the 'all' provider option, which includes AWS, Google, and Azure providers.

TopicDetails
All Providers Support Implements support for checking all providers by adding a new condition in the resource type processing logic
Modified files (1)
  • checkov/common/checks_infra/checks_parser.py
Latest Contributors(2)
UserCommitDate
tsmithv11feat-general-add-new-C...December 02, 2024
dtrouilletfeat-general-add-sever...September 11, 2024
This pull request is reviewed by Baz. Join @lirshindalman and the rest of your team on (Baz).

Copy link

stale bot commented Jun 18, 2025

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 stale bot added the stale label Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants