Closed
Description
Describe the need
Hej all,
We are in the middle of moving from the hashicorp/github provider to integrations/github provider and are also doing a major jump from v4.xx to latest 5.xx (as of writing/testing it was 5.22).
We are now facing an issue due to changing from contexts to checks in the required-status-checks block, because the new structure of the status checks is "context:app_id", but app_id changes with every run of our pipeline?
This is of course a bad thing, because it would lead to "unnecessary" changes with every terraform plan/apply.
SDK Version
No response
API Version
No response
Relevant log output
Result of first plan:
---------------------
~ resource "github_branch_protection_v3" "main" {
id = "repo-name:main"
# (6 unchanged attributes hidden)
~ required_status_checks {
~ checks = [
- "Terraform:824642352016",
# (1 unchanged element hidden)
]
~ contexts = [
- "Terraform",
]
# (2 unchanged attributes hidden)
}
# (1 unchanged block hidden)
}
Result of second plan, without any changes in between:
------------------------------------------------------
~ resource "github_branch_protection_v3" "main" {
id = "repo-name:main"
# (6 unchanged attributes hidden)
~ required_status_checks {
~ checks = [
- "Terraform:824635284400",
# (1 unchanged element hidden)
]
~ contexts = [
- "Terraform",
]
# (2 unchanged attributes hidden)
}
# (1 unchanged block hidden)
}
As one can see, the app_id changed from 824642352016 to 824635284400
Another plan then delivered 824642245200.
So the app_id is kind of generic and this makes it hard for us to use this new version.
Code of Conduct
- I agree to follow this project's Code of Conduct