diff --git a/github_repo.tf b/github_repo.tf index 4e542bd..b2bd8f0 100644 --- a/github_repo.tf +++ b/github_repo.tf @@ -20,6 +20,7 @@ resource "github_repository" "repo" { gitignore_template = "Terraform" is_template = var.is_template archived = var.archived + vulnerability_alerts = var.vulnerability_alerts lifecycle { ignore_changes = [ has_issues, diff --git a/variables.tf b/variables.tf index cf78f8e..1aaaa5e 100644 --- a/variables.tf +++ b/variables.tf @@ -198,3 +198,8 @@ variable "archive_on_destroy" { type = bool default = true } + +variable vulnerability_alerts { + type = bool + default = true +}