Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Provider crashing on namespaces with github_repository_environment resource #5550

Closed
poornima-krishnasamy opened this issue May 1, 2024 · 1 comment
Assignees

Comments

@poornima-krishnasamy
Copy link
Contributor

poornima-krishnasamy commented May 1, 2024

Apply pipeline crashed at pingdom provider for namespaces that has github_repository_environment resource created.

Currenly apply-live-c and apply-live-e failed in namespaces hmpps-manage-intelligence-preprod and manage-intelligence-dev. Having a closer look at those resources, they are referenced in 7 different namespaces
https://github.com/search?q=repo%3Aministryofjustice%2Fcloud-platform-environments%20github_repository_environment&type=code

There is an issue with the provider and it is fixed in version 5.40.0: "Fixed incorrect error handling that led to panic in github_repository_environment by @nfx in integrations/terraform-provider-github#1932"

Testing in hmpps-manage-intelligence-preprod fixed the issue.

As part of this update, bump all github providers to 5.40.0 irrespective of this resource being used or not.

Why it is happening suddenly: Could this be the new github PAT which doesnt have enough permissions

@poornima-krishnasamy poornima-krishnasamy converted this from a draft issue May 1, 2024
@poornima-krishnasamy poornima-krishnasamy self-assigned this May 1, 2024
@poornima-krishnasamy
Copy link
Contributor Author

After further investigation, this was because of the new github token permissions. It needs the actions: read.

@github-project-automation github-project-automation bot moved this from 🏗 In Progress to 🥇 Done in Cloud Platform May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant