Skip to content

Not applying vulnerability_alerts = true on private repository creation #754

@cgriego

Description

@cgriego

Terraform Version

Terraform v0.13.6
+ provider registry.terraform.io/integrations/github v4.5.0

Affected Resource(s)

  • github_repository

Terraform Configuration Files

resource "github_repository" "simulator" {
  visibility = "private"
  name       = "simulator"

  delete_branch_on_merge = true
  has_issues             = false
  has_projects           = false
  has_wiki               = false
  vulnerability_alerts   = true
}

Expected Behavior

When initially creating the resource, vulnerability alerts should be enabled.

Actual Behavior

Repository is initially created with vulnerability alerts disabled, and running Terraform again enables the vulnerability alerts.

Steps to Reproduce

  1. terraform apply

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleUsed by stalebot to clean house

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions