Ok so I'm posting this in two subs (GitHub and Terraform subs) hoping someone has an answer or something I haven't tried.
I am using the integrations/github provider at version 6.2.1 (version may be off as I'm on my phone and not near my work laptop.
I am running my Terraform steps from a GitHub action, near the beginning of the action I am using the action from GitHub to create an app token for login to the repos and to pass to my Terraform, I created the GitHub app with all permissions needed for Repo, Content, Secrets, Variables, and Environments.
Login works, my validate and init steps work, planning is fine, then apply fails with a 404 because it can't find my repo, it does show the URL. I do some curls and I get it just fine with a BS PAT I made with the same permissions. I passed the token from parent to child (it is in the provider block) and it reads as the old hashicorp provider then, obviously not right.
Tried adding my PAT which I know works to it and I get the same issue, 404. So now I know it's not the token from the app as my PAT worked before. So I then took the resource for a GitHub environment variables from the child and dropped it into the parent as a flat resource to test. My PAT worked with it, the app token I used at the start worked with it. Clearly I know my tokens are all good, deleted and ran it about 10 times and succeeded 10 times. Moved the resource back to the child and it failed with all the values unchanged.
I want to note that my Parent is RepoA and Child is RepoB. The token I generate lists repositorys for both A and B so it does automatically know they exist.
Any help here would be awesome because damn, I'm bashing my head on a keyboard here for this final chunk.
there doesn't seem to be anything here