Skip to content

Not applying vulnerability_alerts = true on private repository creation #754

Closed

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

Activity

  1. kfcampbell commented on Apr 22, 2021

    @kfcampbell
    Contributor

    I've confirmed this behavior and drafted a PR to fix it. I'll see about investigating any possible side effects more thoroughly and try to resolve the issue!

  2. ppferrari commented on Apr 26, 2021

    @ppferrari

    Hi @kfcampbell,
    will your fix help in some way with this too?

  3. kfcampbell commented on Apr 27, 2021

    @kfcampbell
    Contributor

    @ppferrari I don't believe so. I've asked around internally and it looks like that has a separate API. I'll make a comment to that effect over there. If nobody beats me to it, I can take a peek at that issue once this fix is in.

  4. github-actions commented on Dec 3, 2022

    @github-actions

    👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

  5. added
    Status: Stale
    on Dec 3, 2022
  6. kfcampbell commented on Dec 5, 2022

    @kfcampbell
    Contributor

    Closing as #768 has been merged. Please open a new issue if there's additional behavior around vulnerability alerts that should be changed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions