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
[FEAT]: Support app auth and PAT via two provider instances #1537
The first provider block errors because, although I'm not explicitly setting the token argument, it is set implicitly due to the existence of the env var GITHUB_TOKEN.
Desired behavior:
app_auth {} block set => Provider uses the GITHUB_APP_... env vars (currently the case*), ignores GITHUB_TOKEN env var (new)
app_auth {} block not set => Provider uses the GITHUB_TOKEN env var (currently the case*), ignores GITHUB_APP_... env vars (currently the case*)
* I manually confirmed these statements about current behavior. In particular, the GITHUB_APP_... env vars are really ignored unless the app_auth {} block is set.
SDK Version
No response
API Version
No response
Relevant log output
│ Error: "app_auth": conflicts with token
│
│ with provider["registry.terraform.io/hashicorp/github"],
│ on main.tf line 1, in provider "github":
│ 1: provider "github" {
│
Activity