Fix Support for Github Environment Secrets' Lifecycle Ignore Changes#2651
Conversation
64d236b to
70adeac
Compare
|
+1 |
|
unlike #2499 this only handles a single type of secret github/resource_github_actions_environment_secret.go vs github/resource_github_actions_environment_secret.go (although this has test/doc changes, and that one doesn't, I would still prefer a complete global fix, but I'm also just a random guy waiting for someone to actually review any of them with proper merge rights) |
|
@nbali I was hopeful a more targeted PR with tests/docs might seem easier to merge from the Approver/Maintainer perspective. |
|
@bshore-bf well there seems to a general lack of attention regarding this repo nowadays, I mean the last meaningful commit happened in February |
|
@nickfloyd any chance to rev these PR and #2499 ? |
Hey @thisispr I'm taking a look at this right now.. it looks like #2499 has some merge conflicts. Let me know if you can get to those and I'll work on getting that reviewed and merged in before the next release. ❤️ |
nickfloyd
left a comment
There was a problem hiding this comment.
❤️ We recently dealt with this for org and repo secrets, thank you for doing this!
Resolves #2288
Before the change?
Modifying a Github Environment Secret value from Terraform OR Externally in Github while using a
lifecycleignore_changesblock always results in Secret creation.After the change?
Modifying a Github Environment Secret value from Terraform OR Externally in Github no longer causes Secret creation, and the
lifecycleignore_changesblock is respected.Notably, with this change a
terraform planwithout theignore_changesnow appropriately states that a Github Environment Secret value must be replaced rather than just "created".Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
Manual test Terraform code (expand)