-
Notifications
You must be signed in to change notification settings - Fork 783
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
[BUG]: The github_repository
resource churns on vulnerability_alerts
if not explicitly set
#2489
Comments
It also looks like if a repository is created with an explicit value for |
vulnerability_alerts
if not explicitly setgithub_repository
resource churns on vulnerability_alerts
if not explicitly set
The code to fix this is currently in #2476 but I'm planning on opening a seperate PR for this change before that gets merged. |
I'm having this issue running acceptance tests:
|
@acouvreur acceptance tests on this branch? |
My feature branch from main |
@acouvreur I'm confused as to what you're saying? This PR is intended to fix the flaky tests, so if you've got a branch from main it will have the issues this PR fixes present. |
I'm sorry about the confusion, I wanted to point out that this issue is still happening and is preventing me from contributing properly. So it was more something like: "this issue is still relevant and happens to me, can confirm." I'm just showing support for this PR 😀 |
Sorry @acouvreur I thought you'd commented on the PR to fix this (#2501). FYI PR #2476 makes all of the automation tests work correctly. |
Expected Behavior
When creating a new repository with the
github_repository
resource, this should not churn ifvulnerability_alerts
is not set.Actual Behavior
If
vulnerability_alerts
is not set it will constantly churn.Terraform Version
n/a
Affected Resource(s)
github_repository
Terraform Configuration Files
Steps to Reproduce
Apply the above resource and then run a plan.
This issue is being caused by a missing
Computed: true
value on the schema. I'll open a PR to fix this, but long term this attribute should be deprecated and handled by it's own resource.Debug Output
No response
Panic Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: