hashicorp / terraform-cdk

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
https://www.terraform.io/cdktf
Mozilla Public License 2.0
4.79k stars 443 forks source link

COMPONENT: golang cdktf cannot create repo #3569

Closed nitang22 closed 3 months ago

nitang22 commented 3 months ago

Expected Behavior

Using the Github provider, I should be able to create repositories after initializing the provider

Actual Behavior

Error: PATCH https://api.github.com/repos/group/new_repo: 404 Not Found []

Steps to Reproduce

Screenshot from 2024-03-27 16-21-07

Versions

cdktf debug language: go cdktf-cli: 0.20.5 node: v20.11.1 cdktf: 0.20.5 constructs: 10.3.0 jsii: 1.95.0 terraform: 1.5.7 arch: x64 os: linux 6.5.0-26-generic go: go version go1.22.1 linux/amd64

Providers

github.com/cdktf/cdktf-provider-github-go/github (PREBUILT) terraform provider version: 6.2.0 prebuilt provider version: 14.2.0 cdktf version: ^0.20.0

Gist

No response

Possible Solutions

No response

Workarounds

No response

Anything Else?

No response

References

No response

Help Wanted

Community Note

nitang22 commented 3 months ago

Ok not a cdktf issue but the error output was not explicit but the token does not work if we activate Github SSO after creating the token, a new authorization in the github UI will solve the issue.

github-actions[bot] commented 2 months ago

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.