Skip to content
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

fix: ensure webhook.events & webhook.signing_secret changes are detected correctly #46

Merged
merged 7 commits into from
Aug 5, 2023

Conversation

kelvintaywl
Copy link
Owner

@kelvintaywl kelvintaywl commented Aug 5, 2023

Resolves #45

This PR fixes the detection of changes for the circleci_webhook resource.
Specifically we modified the following:

attribute remarks
events (breaking) switch attribute from List to Set to ensure ordering does not matter
signing_secret disregard returned value from CircleCI V2 API since it's always returned masked

Also modified the circleci_webhooks data source for events attribute.

Importantly, we also added an additional test to confirm no changes to plan are detected if the circleci_webhook resource definition did not change indeed.

@kelvintaywl kelvintaywl merged commit 72da3c3 into main Aug 5, 2023
1 check passed
@kelvintaywl kelvintaywl deleted the fix-webhook-events-type branch August 5, 2023 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

resource circleci_webhook shows events attribute changed on terraform plan even though there is no changes.
1 participant