-
Notifications
You must be signed in to change notification settings - Fork 777
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]: Repository name updates break dependent repository secrets #1754
[Bug]: Repository name updates break dependent repository secrets #1754
Conversation
Ready for review/merge! |
@@ -16,13 +16,13 @@ func resourceGithubActionsSecret() *schema.Resource { | |||
return &schema.Resource{ | |||
Create: resourceGithubActionsSecretCreateOrUpdate, | |||
Read: resourceGithubActionsSecretRead, | |||
Update: resourceGithubActionsSecretCreateOrUpdate, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why removing the update and adding ForceNew solves this issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Resource Id is made up of the repository
and secret_name
as a TwoPartID
which should be immutable if im not mistaken.
While the update is removed because all properties have forcenew or computed (terraform will complain about it if its left in).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github/resource_github_actions_environment_secret.go
seems to be similar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh got it, thank you!
…tegrations#1754) * fix rename issue & add tests * fix rename issue & add tests * fix rename issue & add tests * remove main.tf --------- Co-authored-by: Keegan Campbell <me@kfcampbell.com>
Resolves #1753
Behavior
See issure #1753 .
Other information
github_codespaces_secret
Additional info
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
Type: Breaking change
label)If
Yes
, what's the impact:Pull request type
Please add the corresponding label for change this PR introduces:
Type: Bug
Type: Feature
Type: Documentation
Type: Maintenance