Skip to content

[BUG]: Regression v6.7.x on GHES getting vulnerability-alerts: 404 Not Found [] #2867

@frco9

Description

@frco9

Expected Behavior

We used provider version 6.6 since February without issue to, among other things, create repositories on a GHES instance.

When we try to bump to 6.7.x, we have this error when we create a new repository :

╷
│ Error: DELETE https://ghes-domain.cloud/api/v3/repos/my-org/my-repo/vulnerability-alerts: 404 Not Found []
│ 
│   with module.my_module.github_repository.repo,
│   on .terraform/modules/my_module/main.tf line 58, in resource "github_repository" "repo":
│   58: resource "github_repository" "repo" {
│ 
╵
Error: Process completed with exit code 1.

This is exactly the same error as described here #716

It seems version 6.7.x introduced a regression on this.

Actual Behavior

We cannot create a repository

Terraform Version

Terraform v1.12.2
on darwin_arm64

  • provider registry.terraform.io/integrations/github v6.7.5

Affected Resource(s)

  • github_repository

Terraform Configuration Files

resource "github_repository" "repo" {
  name        = module.naming.repo_name
  description = var.description

  visibility = var.private_repo ? "private" : "internal"

  # cf Features section in UI
  has_issues   = false
  has_wiki     = false
  has_projects = false
  # cf Pull Requests section in UI
  allow_merge_commit   = true
  merge_commit_title   = "PR_TITLE"
  merge_commit_message = "BLANK"
  allow_rebase_merge   = false
  allow_squash_merge   = false

  allow_update_branch    = true
  delete_branch_on_merge = true

  archive_on_destroy = true

  template {
    owner      = local.template.owner
    repository = local.template.repo
  }
}

Steps to Reproduce

terraform apply

Debug Output

Panic Output

╷
│ Error: DELETE https://ghes-domain.cloud/api/v3/repos/my-org/my-repo/vulnerability-alerts: 404 Not Found []
│ 
│   with module.my_module.github_repository.repo,
│   on .terraform/modules/my_module/main.tf line 58, in resource "github_repository" "repo":
│   58: resource "github_repository" "repo" {
│ 
╵
Error: Process completed with exit code 1.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions