Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.
Describe the issue
When creating a github_repository resource, the check fails for:
Check: CKV2_GIT_1: "Ensure each Repository has branch protection associated"
FAILED for resource: module.github.module.service_name.github_repository.repository[0]
Even though we do create a github_branch_protection_v3 resource with the repository.
Describe the issue When creating a github_repository resource, the check fails for: Check: CKV2_GIT_1: "Ensure each Repository has branch protection associated" FAILED for resource: module.github.module.service_name.github_repository.repository[0]
Even though we do create a github_branch_protection_v3 resource with the repository.
Examples We create the resources using modules:
in repository_mgmt:
Version (please complete the following information):