https://pulumi.com logo
#general
Title
# general
m

most-mouse-38002

03/01/2023, 6:45 PM
I find myself having to manually do a
pulumi state delete $urn
when ever I update a secret, Pulumi tells me everything was okay creating a new and deleting the old secret, but every time it only deletes the secret without creating the new one. After removing it from the state it works as expected (until next time I change secrets) https://www.pulumi.com/registry/packages/github/api-docs/actionssecret/
l

little-cartoon-10569

03/01/2023, 7:37 PM
Are you using the plaintextValue property? Try using only the encryptedValue property and see if the behaviour improves.
m

most-mouse-38002

03/02/2023, 9:31 AM
It actually is not encrypted since I read the secret from an env variable in the repository triggering this change (I have a core repo maintaining every other repo).
l

little-cartoon-10569

03/02/2023, 8:05 PM
I can't think of an explanation for this. You should raise an issue in the pulumi-github repo.
m

most-mouse-38002

03/06/2023, 9:54 AM
Yeah, I will try to do that (currently sitting on two possible issues), just need to find the time 👍