github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/github/repositories/private.tf.go (about) 1 package repositories 2 3 var terraformPrivateGoodExamples = []string{ 4 ` 5 resource "github_repository" "good_example" { 6 name = "example" 7 description = "My awesome codebase" 8 9 visibility = "private" 10 11 template { 12 owner = "github" 13 repository = "terraform-module-template" 14 } 15 } 16 `, 17 } 18 19 var terraformPrivateBadExamples = []string{ 20 ` 21 resource "github_repository" "bad_example" { 22 name = "example" 23 description = "My awesome codebase" 24 25 visibility = "public" 26 27 template { 28 owner = "github" 29 repository = "terraform-module-template" 30 } 31 } 32 `, 33 } 34 35 var terraformPrivateLinks = []string{ 36 `https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository`, 37 } 38 39 var terraformPrivateRemediationMarkdown = ``