Which Cloudflare product(s) does this pertain to?
Workers Runtime
What versions & operating system are you using?
No local wrangler
Please provide a link to a minimal reproduction
No response
Describe the Bug
Hi team,
I'm using the GitHub <-> Cloudflare connector configured via the Cloudflare dashboard (not GitHub Actions) to deploy my Worker. I’ve noticed that any environment variables or secrets I define through the Cloudflare UI are deleted with each deployment.
My situation:
I want to avoid saving secrets in source control.
I'm not using GitHub Actions — just the built-in GitHub integration in the Cloudflare UI.
I’m adding environment variables in the dashboard manually, but they disappear every time I push to the connected branch.
Issue: Every deployment from GitHub seems to overwrite or clear out previously set environment variables, even though I haven't changed anything related to them in the repo. This makes it nearly impossible to manage secrets securely without re-entering them after every deploy.
Request:
Is there a way to retain environment variables set in the dashboard when using the GitHub integration?
Can you clarify whether this is expected behavior or a bug?
Are there any options to separate secret/config management from deploy behavior when not using GitHub Actions?
I’d prefer not to manage secrets in wrangler.toml or commit them anywhere in version control. I’d also rather not shift to GitHub Actions just to preserve environment variables.
Thanks in advance!
Please provide any relevant error logs
No response
Which Cloudflare product(s) does this pertain to?
Workers Runtime
What versions & operating system are you using?
No local wrangler
Please provide a link to a minimal reproduction
No response
Describe the Bug
Hi team,
I'm using the GitHub <-> Cloudflare connector configured via the Cloudflare dashboard (not GitHub Actions) to deploy my Worker. I’ve noticed that any environment variables or secrets I define through the Cloudflare UI are deleted with each deployment.
My situation:
I want to avoid saving secrets in source control.
I'm not using GitHub Actions — just the built-in GitHub integration in the Cloudflare UI.
I’m adding environment variables in the dashboard manually, but they disappear every time I push to the connected branch.
Issue: Every deployment from GitHub seems to overwrite or clear out previously set environment variables, even though I haven't changed anything related to them in the repo. This makes it nearly impossible to manage secrets securely without re-entering them after every deploy.
Request:
Is there a way to retain environment variables set in the dashboard when using the GitHub integration?
Can you clarify whether this is expected behavior or a bug?
Are there any options to separate secret/config management from deploy behavior when not using GitHub Actions?
I’d prefer not to manage secrets in wrangler.toml or commit them anywhere in version control. I’d also rather not shift to GitHub Actions just to preserve environment variables.
Thanks in advance!
Please provide any relevant error logs
No response