Open garysassano opened 5 months ago
Hi, We are facing the same issue. when can we expect this to be fixed?
I saw the same error with provider 5.45.0 and found I could fix it by using ONLY the GITHUB_TOKEN
env var, and not the "token" value in the provider block. See #2242. Until that was changed I don't think I was using the correct token.
Something is weird but that might be a workaround. YMMV.
IIRC, I fixed the issue by giving the GitHub App the administration: write
permission. Definitely not intuitive, I couldn't find any reference in the official documentation.
Expected Behavior
Be able to create a repository using
${{ secrets.GITHUB_TOKEN }}
instead of${{ secrets.MY_PAT }}
.Actual Behavior
Can only create a
github_repository
resource using${{ secrets.MY_PAT }}
, since even a${{ secrets.GITHUB_TOKEN }}
with full write permissions doesn't have the rights to create a new repository when used with the integrations/github Terraform provider.Terraform Version
Terraform v1.8.0 on linux_amd64 + provider registry.terraform.io/integrations/github v6.2.1
Affected Resource(s)
github_repository
github_branch_protection
Terraform Configuration Files
Steps to Reproduce
No response
Debug Output
No response
Panic Output
No response
Code of Conduct