Skip to content

Secrets store bindings unavailable in github action #8964

Description

@mgandolfi7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    error-messagingImproving user facing error messagesinternalRequires support from the Cloudflare Platformproduct:secrets-storeRelating to Cloudflare Secrets Store: https://developers.cloudflare.com/secrets-store/

    Type

    No fields configured for Bug.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions