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
Walshy
Walshy5d ago
are you sure you're adding as a secret and not an environment variable?
Deanmuse94
Deanmuse945d ago
I'm quite sure because when I added the secret I had an option to encrypt/hide it
Walshy
Walshy5d ago
yep did you press encrypt?
Deanmuse94
Deanmuse945d ago
I didn't. Does it resolve the issue if I encypt it?
Walshy
Walshy5d ago
Yes Encrypt = secret none encrypted = env var
Deanmuse94
Deanmuse945d ago
Alright thank you, I will do that
Want results from more Discord servers?
Add your server