Skip to content

v4.3.1 breaks owner provider configuration #678

Closed

Description

@sh0shin

Terraform Version

Terraform v0.14.5
+ provider registry.terraform.io/integrations/github v4.3.1

Affected Resource(s)

  • github_repository
  • all

Terraform Configuration Files

terraform {
  required_providers {
    github = {
      source = "integrations/github"
    }
  }
}

provider "github" {
  owner = "sh0shin"
  # token is provided via GITHUB_TOKEN environment variable
}

resource "github_repository" "sick" {
  name        = "sick"
  description = "My sick git repository"
  visibility  = "public"
}

Debug Output

https://gist.github.com/sh0shin/8faca30a9f162939fa50fcc097868112

Expected Behavior

Repository sick should be created.

Actual Behavior

Error: GET https://api.github.com/orgs/sh0shin: 404 Not Found []

  on main.tf line 11, in provider "github":
  11: provider "github" {

Steps to Reproduce

  • terraform apply

Activity

  1. sh0shin commented on Jan 27, 2021

    @sh0shin
    Author

    It looks like the problem is in the config.go: L100-L124 and/or L200-L220

    The owner is check as an organization and an error is returned: L118-L120 and/or L215-L217

  2. added
    Type: Bug
    on Jan 29, 2021
  3. sorensonpragmatics commented on Feb 1, 2021

    @sorensonpragmatics

    Hitting same issue.

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

    ProviderType: Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions