Skip to content

setting secrets in workflow does not configure correctly on dashboard #392

Description

@pippinmole

I have the following workflow file:

name: Deploy Worker
on:
  push:
    branches:
      - main
jobs:
  deploy:
    runs-on: ubuntu-latest
    timeout-minutes: 60
    steps:
      - uses: actions/checkout@v4

      - name: Set up Bun
        uses: oven-sh/setup-bun@v2
        with:
          bun-version: 1.3.0

      - name: Build & Deploy Worker
        uses: cloudflare/wrangler-action@v3
        with:
          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
          accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
          wranglerVersion: "4.47.0"
          environment: prod
          workingDirectory: "apps/cron"
          packageManager: "bun"
          secrets: |
            BASE_URL
            CRON_SECRET
        env:
          BASE_URL: 'my-url'
          CRON_SECRET: 'my-hardcoded-secret'

I hardcoded the env strings to make sure there is no issue with GitHub Secrets not being pulled through. When I run this workflow, it outputs that it has updated two secrets:

Image

However, on the dashboard, the secrets are listed as Plaintext, not Secret. Additionally they are both blank, and my cron job fails because neither of these env variables are set:

Image

Here's my validation:

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions