Worker Secret missing after deploying Worker
Hi, I have a Cloudflare Worker that I have connected to my Github Actions pipeline to automate deployments after pushing to a specific branch. I created a secret for the worker in the dashboard and it seems when I push my code, the secret is removed/deleted, which obviously breaks the worker script. Am I potentially doing something incorrectly?
6 Replies
are you sure you're adding as a secret and not an environment variable?
I'm quite sure because when I added the secret I had an option to encrypt/hide it
yep did you press encrypt?
I didn't. Does it resolve the issue if I encypt it?
Yes
Encrypt = secret
none encrypted = env var
Alright thank you, I will do that