You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: Conflict between GITHUB_TOKEN and app_auth {} #3096
... and these environment variables set: GITHUB_TOKEN, GITHUB_APP_*
The Github App auth should work.
We have this case because in our CI we need GITHUB_TOKEN to be set for another tool (in our case Terramate), but we want to use a Github App authentication for the Github provider.
Actual Behavior
╷
│ Error: Conflicting configuration arguments
│
│ with provider["registry.opentofu.org/integrations/github"],
│ on provider-github.tf line 2, in provider "github":
│ 2: provider "github" {
│
│ "app_auth": conflicts with token
╵
╷
│ Error: Conflicting configuration arguments
│
│ with provider["registry.opentofu.org/integrations/github"],
│ on provider-github.tf line 5, in provider "github":
│ 5: token = ""
│
│ "token": conflicts with app_auth
👋 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 labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
@thomvaill you should be able to change your provider config to make this work as the configuration below is semantically identical.
provider "github" {
app_auth {}
}
Before the merge of #3071 we had this config and it worked well. But since this PR was merged, we get the "token": conflicts with app_auth because the GITHUB_TOKEN env var is defined
@deiga I think the change in #3071 was actually breaking. We may need to revert (until v7) it in favour of a custom validation function that errors if the token length >0 and the app_auth length >0.
@thomvaill your configuration is actually invalid because you set token = "". If you have GITHUB_TOKEN defined then it will also error once that is removed until we fix the primary defect here. See above for my comment about your specific use case.
Activity
github-actions commentedon Jan 20, 2026
👋 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 labeled with
Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀stevehipwell commentedon Jan 20, 2026
@thomvaill are you attempting to override the auth mode at runtime?
stevehipwell commentedon Jan 20, 2026
@thomvaill you should be able to change your provider config to make this work as the configuration below is semantically identical.
thomvaill commentedon Jan 20, 2026
Before the merge of #3071 we had this config and it worked well. But since this PR was merged, we get the
"token": conflicts with app_authbecause theGITHUB_TOKENenv var is definedstevehipwell commentedon Jan 20, 2026
@deiga I think the change in #3071 was actually breaking. We may need to revert (until v7) it in favour of a custom validation function that errors if the
tokenlength >0 and theapp_authlength >0.stevehipwell commentedon Jan 20, 2026
@thomvaill your configuration is actually invalid because you set
token = "". If you haveGITHUB_TOKENdefined then it will also error once that is removed until we fix the primary defect here. See above for my comment about your specific use case.