You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An update to a github.ActionsOrganizationSecret resource results in the resource being replaced (expected) but the secret is deleted and then not recreated and no error message is given. Pulumi indicates that everything worked as expected but going to github to see the secret shows it is deleted.
Steps to reproduce
Using the code provided below, do the following:
pulumi up -y
Go to github organization and see the "TESTSECRET" secret is created.
Change the plaintext field to something else.
pulumi up -y (this will require replacing the secret)
See the pulumi up completes as expected with no errors.
Go to Github and see that the secret is no longer there.
WORKAROUND: Use deleteBeforeReplace resource option.
Without the deleteBeforeReplace setting, I would expect some error to be presented instead of silently failing with indications of success.
Actual Behavior
The pulumi up that replaces the secret completes with no error message but the secret is deleted and not recreated.
Output of pulumi about
CLI
Version 3.40.2
Go Version go1.19.1
Go Compiler gc
Plugins
NAME VERSION
github 4.17.0
nodejs unknown
Host
OS darwin
Version 12.5.1
Arch x86_64
This project is written in nodejs: executable='/Users/mitch/.nvm/versions/node/v18.0.0/bin/node' version='v18.0.0'
Current Stack: dev
TYPE URN
pulumi:pulumi:Stack urn:pulumi:dev::github-org-testing::pulumi:pulumi:Stack::github-org-testing-dev
pulumi:providers:github urn:pulumi:dev::github-org-testing::pulumi:providers:github::default_4_17_0
github:index/actionsOrganizationSecret:ActionsOrganizationSecret urn:pulumi:dev::github-org-testing::github:index/actionsOrganizationSecret:ActionsOrganizationSecret::secret
Found no pending operations associated with dev
Backend
Name pulumi.com
URL https://app.pulumi.com/xxxxxx
User xxxxxxx
Organizations xxxxx
Dependencies:
NAME VERSION
@pulumi/github 4.17.0
@pulumi/pulumi 3.40.2
@types/node 14.18.31
Pulumi locates its logs in /var/folders/qp/6k0zsrj13rz5ll53hsmlksvw0000gq/T/ by default
Additional context
Workaround is to use deleteBeforeReplace: true
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
Previously, replacements were deleting the secret after the replacement had completed, meaning the secret itself is no longer present
See pulumi/pulumi-github#250
What happened?
An update to a github.ActionsOrganizationSecret resource results in the resource being replaced (expected) but the secret is deleted and then not recreated and no error message is given. Pulumi indicates that everything worked as expected but going to github to see the secret shows it is deleted.
Steps to reproduce
Using the code provided below, do the following:
pulumi up -y
pulumi up -y
(this will require replacing the secret)deleteBeforeReplace
resource option.TEST CODE:
Expected Behavior
Without the
deleteBeforeReplace
setting, I would expect some error to be presented instead of silently failing with indications of success.Actual Behavior
The
pulumi up
that replaces the secret completes with no error message but the secret is deleted and not recreated.Output of
pulumi about
Additional context
Workaround is to use
deleteBeforeReplace: true
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: