workers-sdk
workers-sdk copied to clipboard
Secrets store bindings unavailable in github action
Which Cloudflare product(s) does this pertain to?
Wrangler, Other
What versions & operating system are you using?
cloudflare/wrangler-action@v3, wrangler 4.11.0, Ubuntu 24.04.2 LTS
Please provide a link to a minimal reproduction
No response
Describe the Bug
I am using wrangler-action to automate deployments. My workers that use the new secrets store beta fail with the following error:
✘ [ERROR] A request to the Cloudflare API (/accounts/***/workers/scripts/api-production/versions) failed.
failed to fetch secrets store binding due to authorization error - check deploy permissions and secret scopes [code: 10021]
I have confirmed that my Cloudflare API token has then Account permission for Secrets Store with Read level access.
Please provide any relevant error logs
✘ [ERROR] A request to the Cloudflare API (/accounts/***/workers/scripts/api-production/versions) failed.
failed to fetch secrets store binding due to authorization error - check deploy permissions and secret scopes [code: 10021]
Workaround
Add EDIT access to your API token.