Skip to content

[BUG]: Empty or no provider information leads to error #2008

Closed

Description

@schlichtanders

Expected Behavior

the github integration should work anonymously without providing any provider information

Actual Behavior

with no provider "github" {} I get the following error on the most recent version

│ Error: Invalid provider configuration
│ 
│ Provider "registry.terraform.io/integrations/github" requires explicit configuration. Add a provider block to the root module and configure the provider's required
│ arguments as described in the provider documentation.
│ 
╵
╷
│ Error: GET https://api.github.com/user: 401 Requires authentication []
│ 
│   with provider["registry.terraform.io/integrations/github"],
│   on <empty> line 0:
│   (source code not available)
│ 

with setting the empty provider "github" {}, I still get

╷
│ Error: GET https://api.github.com/user: 401 Requires authentication []
│ 
│   with provider["registry.terraform.io/integrations/github"],
│   on kube.tf line 754, in provider "github":
│  754: provider "github" {}
│ 

Terraform Version

Terraform v1.5.3
on linux_amd64

Your version of Terraform is out of date! The latest version
is 1.6.3. You can update by downloading from https://www.terraform.io/downloads.html

Affected Resource(s)

Terraform Configuration Files

No response

Steps to Reproduce

you could create a kubernetes cluster using https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner and see that it fails, but I guess that is not yet minimal enough.

Debug Output

No response

Panic Output

No response

Code of Conduct

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

Activity

  1. added
    Status: Triage
    Type: Bug
    on Nov 7, 2023
  2. github-actions commented on Nov 7, 2023

    @github-actions

    👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

  3. rcambrj commented on Nov 7, 2023

    @rcambrj

    This appears to have been introduced in v5.41.0..v5.42.0

  4. mysticaltech commented on Nov 8, 2023

    @mysticaltech

    Waiting for the fix too.

  5. added
    Status: Up for grabs
    and removed
    Status: Triage
    on Nov 9, 2023
  6. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Nov 9, 2023
  7. mnencia commented on Jan 11, 2024

    @mnencia
    Contributor

    Solved in release 5.44.0.

    @kfcampbell please close this issue.

  8. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon Jan 22, 2024
  9. mabilinab commented on Oct 5, 2024

    @mabilinab

    Hey! I'm getting this error again. Any tips?

  10. mschfh commented on Nov 1, 2024

    @mschfh

    @mabilinab Did your token (GITHUB_TOKEN) expire?

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: Up for grabsType: Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions