Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
schlichtanders opened this issue Nov 7, 2023 · 6 comments
Closed
1 task done

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

schlichtanders opened this issue Nov 7, 2023 · 6 comments
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented

Comments

@schlichtanders
Copy link

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
@schlichtanders schlichtanders added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Nov 7, 2023
Copy link

github-actions bot commented Nov 7, 2023

👋 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! 🚀

@rcambrj
Copy link

rcambrj commented Nov 7, 2023

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

@mysticaltech
Copy link

Waiting for the fix too.

@kfcampbell kfcampbell added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Nov 9, 2023
@kfcampbell kfcampbell moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Active Nov 9, 2023
kfcampbell added a commit that referenced this issue Jan 5, 2024
Resolves regressions #2008 and #2014 introduced in #1029

Signed-off-by: Marco Nenciarini <mnencia@kcore.it>
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
@mnencia
Copy link
Contributor

mnencia commented Jan 11, 2024

Solved in release 5.44.0.

@kfcampbell please close this issue.

@github-project-automation github-project-automation bot moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Active Jan 22, 2024
avidspartan1 pushed a commit to avidspartan1/terraform-provider-github that referenced this issue Feb 5, 2024
Resolves regressions integrations#2008 and integrations#2014 introduced in integrations#1029

Signed-off-by: Marco Nenciarini <mnencia@kcore.it>
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
@mabilinab
Copy link

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

@mschfh
Copy link

mschfh commented Nov 1, 2024

@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
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

7 participants