-
Notifications
You must be signed in to change notification settings - Fork 697
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
Provider update changes security_and_analysis block #1466
Comments
My guess is that we're missing a migration function here, similar to this code. |
Not sure if related, but I am currently working on #1458 and my tests are currently failing as I need to create a repo as part of the tests. This is the output from my failing test:
It looks like there an issue with the Edit: As a work around, I made the repos private during creation. |
In addition to the public repo issues everyone has been commenting on in #1419 there is another issue for private/internal repos with updating the provider version. If a repo was created at/after the
security_and_analysis
block was introduced (e.g. at5.9.0
+), without the block explicitly set, and then is updated to a newer version (doesn't seem to matter which), the plan wants to remove the block. e.g.Steps to reproduce
create Terraform config:
apply the config
then update provider version in terraform config (no repository config changes), so the resulting config is:
and plan again
the resulting plan tries to remove the
security_and_analysis
block (see above).Originally posted by @jtgrohn in #1419 (comment)
The text was updated successfully, but these errors were encountered: