workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

Secrets store bindings unavailable in github action

Open mgandolfi7 opened this issue 7 months ago • 14 comments

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.

mgandolfi7 avatar Apr 15 '25 19:04 mgandolfi7