© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3y ago•
1 reply
Geometrically

Secrets in Cloudflare Workers

Hello,

I am trying to upload secrets to my worker via GitHub Actions. However, it is not working. It says the secrets are uploaded but they aren't there.

Do I need to put the secrets in my
Wrangler.toml
Wrangler.toml
with dummy values so it registers?
Repo: https://github.com/modrinth/sisyphus.

This is my actions.yml. Everything works but secrets upload:

on:
  push:
    branches:
      - master
jobs:
  deploy:
    runs-on: ubuntu-latest
    name: Deploy
    steps:
      - uses: actions/checkout@v3
      - name: Set up pnpm
        uses: pnpm/action-setup@v2
        with:
          version: 8.6.2
      - name: Deploy app
        uses: cloudflare/wrangler-action@v3
        with:
          apiToken: ${{ secrets.CF_API_TOKEN }}
          command: deploy --env staging
          secrets: |
            LABRINTH_ADMIN_KEY
            RATE_LIMIT_IGNORE_KEY
        env:
          LABRINTH_ADMIN_KEY: ${{ secrets.LABRINTH_ADMIN_SECRET_DEV }}
          RATE_LIMIT_IGNORE_KEY: ${{ secrets.RATE_LIMIT_IGNORE_KEY_DEV }}
on:
  push:
    branches:
      - master
jobs:
  deploy:
    runs-on: ubuntu-latest
    name: Deploy
    steps:
      - uses: actions/checkout@v3
      - name: Set up pnpm
        uses: pnpm/action-setup@v2
        with:
          version: 8.6.2
      - name: Deploy app
        uses: cloudflare/wrangler-action@v3
        with:
          apiToken: ${{ secrets.CF_API_TOKEN }}
          command: deploy --env staging
          secrets: |
            LABRINTH_ADMIN_KEY
            RATE_LIMIT_IGNORE_KEY
        env:
          LABRINTH_ADMIN_KEY: ${{ secrets.LABRINTH_ADMIN_SECRET_DEV }}
          RATE_LIMIT_IGNORE_KEY: ${{ secrets.RATE_LIMIT_IGNORE_KEY_DEV }}
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Shared secrets across workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
7mo ago
Workers with Secrets Store Secrets - Production Config
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
8mo ago
Cloudflare Secrets Open Beta
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
5mo ago
Build secrets for preview workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
4mo ago