Listed so it knows to use the correct github. If I add a provider block in the child, it acts as if it is using the hashicorp source until I remove it. No matter what changes I make I cannot seem to get around the 404 and I am not sure what additional steps to take to ensure that my token is passed properly.
Do note, I am logging in using a Github App and converting the app_id and app_password to a token which does log into the CLI in an earlier phase.
Terraform Version
Terraform 1.8.0 on darwin arm64 (MACOS)
Affected Resource(s)
github_actions_environment_secret
github_actions_environment_variable
Terraform Configuration Files
No response
Steps to Reproduce
terraform apply -tfplan ./tfplan
Debug Output
2024-04-12T16:11:36.9939336Z 2024-04-12T16:11:19.366Z [ERROR] provider.terraform-provider-github_v6.2.1: Response contains error diagnostic: diagnostic_severity=ERROR diagnostic_summary="GET https://api.github.com/repos/SecretCo/MyRepo: 404 Not Found []" tf_provider_addr=provider tf_req_id=2a45f0d2-a6b3-c79c-3aa0-bf314fdf6b9f tf_resource_type=github_actions_environment_secret @caller=github.com/hashicorp/terraform-plugin-go@v0.22.0/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail="" tf_rpc=ApplyResourceChange tf_proto_version=5.4 @module=sdk.proto timestamp=2024-04-12T16:11:19.366Z
2024-04-12T16:11:36.9961465Z 2024-04-12T16:11:19.367Z [ERROR] vertex "module.gha-dpl-env-client-id-add.github_actions_environment_secret.secret" error: GET https://api.github.com/repos/SecretCo/SecretRepo: 404 Not Found []
Panic Output
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Expected Behavior
This should connect to the secret (also variable in a seperate module doing the same thing) module in the child and create my secret.
Actual Behavior
I recieve a 404 on the repo as it does not seem to be passing the token to the child module. Note that in the child module I do have:
Listed so it knows to use the correct github. If I add a provider block in the child, it acts as if it is using the hashicorp source until I remove it. No matter what changes I make I cannot seem to get around the 404 and I am not sure what additional steps to take to ensure that my token is passed properly.
Do note, I am logging in using a Github App and converting the app_id and app_password to a token which does log into the CLI in an earlier phase.
Terraform Version
Terraform 1.8.0 on darwin arm64 (MACOS)
Affected Resource(s)
Terraform Configuration Files
No response
Steps to Reproduce
terraform apply -tfplan ./tfplan
Debug Output
Panic Output
No response
Code of Conduct