Closed muawiakh closed 11 months ago
👋 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! 🚀
Update:
The issue wasn't related to the upgrade, the issue turned out to be internal i.e. in the caller
module we were using the following configuration:
provider "github" {
owner = "orgname"
token = var.github_app_token
}
But in the callee module we recently introduced a change i.e. adding provider.tf
with contents:
provider "github" {
owner = "orgname"
}
and apparently the callee
was picking up the GITHUB_TOKEN
from the Github Actions CI(which is available) and that token obviously doesn't have the permissions to create repositories. Fixed it by removing the provider auth from the callee
.
Expected Behavior
We are generating some repositories from our
internal template(s)
and this worked fine until we upgradedterraform-provider-github
i.e.For authentication we were using a Github App and generating a token using the following workflow:
Actual Behavior
After the upgrade, we are receiving a 404 from the Github API:
In the Github API documentation , it is missing the
Works with GitHub Apps
sign as well and also needs aUAT
based on the latest documentation: https://docs.github.com/en/rest/overview/permissions-required-for-github-apps?apiVersion=2022-11-28Based on the release notes, we are unable pinpoint, when the provider started failing using the App Token. We would like to stay up-to-date with the provider version and figure out if this is an issue or if we should use a
user-to-server
token for template repository creations.Terraform Version
terraform_version: 1.6.3
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
terraform apply
Debug Output
No response
Panic Output
No response
Code of Conduct