We are setting up a GitHub Actions pipeline to run terraform plan on pull requests. The workflow uses OIDC to fetch credentials for the Genesys Cloud provider. Locally it works fine. In the CI environment, the plan step crashes with Error: provider configuration not present. We have verified the OIDC token is valid and passed via environment variables. The terraform init step succeeds. Is there a specific configuration required for the provider block when running in a headless CI environment? Here is the relevant workflow snippet:
- run: terraform plan
env:
GC_GENESYS_CLOUD_API_AUTH: ${{ secrets.GC_API_AUTH }}
The logs show it cannot find the provider configuration even though the init passed.