Open MinaFarrokhnia-BYM opened 3 weeks ago
What if you try to use the GITHUB_APP_PEM_FILE
environment variable instead of the pem_file
setting under the provider block?
Check #2242 , I know they're using a different type of auth (token), but setting the value via env var seemed to fix it for them.
What if you try to use the
GITHUB_APP_PEM_FILE
environment variable instead of thepem_file
setting under the provider block?Check #2242 , I know they're using a different type of auth (token), but setting the value via env var seemed to fix it for them.
Thanks for the comment. I have tried it using environment variable but got the same error message. The token works fine for me, however I would like to make use of GitHub App instead.
I would also like to transition to App auth, so I will be following this thread.
Thanks for the comment. I have tried it using environment variable but got the same error message. The token works fine for me, however I would like to make use of GitHub App instead.
2 more things I'm curious about:
Can you try setting GITHUB_OWNER
env var?
For the App Installation ID that you're using ... it's installed to repos in the same org where you're trying to create a new repo, right?
Expected Behavior
github_repository.github_repository: Creation complete
Actual Behavior
Terraform Version
Terraform v1.8.5 on darwin_arm64
Affected Resource(s)
Terraform Configuration Files
I have tried using environment variable as well by adding these variables under GitHub action pipeline however I got the same error:
terraform:
Workflow:
Steps to Reproduce
GitHub App has these permission to create repository, teams, users, branch_protection and etc:
however it fails on apply.
$ terraform apply
Debug Output
Panic Output
No response
Code of Conduct