-
Notifications
You must be signed in to change notification settings - Fork 905
fix: Add destroy-on-drift property to the GitHub Action Secret resource schema #2832
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
Conversation
…d pointed at the create func
|
cc: @grimm26 |
|
When upgrading the provider from 6.7.1 to 6.7.2, I'm seeing the following error: Is there a work-around for this? |
|
Running into the same issue as @pickgr here... |
|
@pickgr @jkstpierre Closing this PR - let me see if I can track down the issue or come up with a workaround. Apologies for the trouble - it looks like I might've left off the Update function but I need to verify - even though the resource does not have one the interface requires it. Update: It appears that I missed it in my cherry pick into the patch. The change is present in this branch but not in the patch. Org update has the correct fix in the patch here. |
Thanks @nickfloyd ! I just confirmed this is fixed in version 6.7.3 |
|
Is this a user-configurable setting? If yes, do the docs need updated? https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_secret |
|
Too bad it was not implemented for github_environment_secrets that are facing the exact same issue. |
Resolves #964
Resolves #2804
NOTE: Intended to be patched into v2.7.1 and merged into main.
Before the change?
After the change?
destroy_on_driftproperty to indicate if we should recreate if the secret was modified outside of the context of the provider.destroyOnDrift=true(which is the default) and drift is detected, the code sets d.SetId("") but does NOT update the timestamp. This means on the next Terraform run, the old timestamp is still in state, so it will detect drift again, causing an infinite loop of "Provider produced inconsistent result" errors.Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!