Ensure Gitlab project prevents secrets
Error: Gitlab project does not prevent secrets
Bridgecrew Policy ID: BC_REPO_GITLAB_TF_3
Checkov Check ID: CKV_GLB_3
Severity: LOW
Gitlab project does not prevent secrets
Description
In GitLab, administrators can turn on the capability to identify and block secrets in MRs.
Fix - Buildtime
Terraform
- Resource: gitlab_project
- Attribute: prevent_secrets
resource "gitlab_project" "example-two" {
...
push_rules {
...
+ prevent_secrets = true
}
}
Updated 3 months ago