GH secrets aren't coming through to my worker

Well, some are. But I added some new ones 4 hours ago and when I go to CF > Workers > my worker > settings > variables, the ones I added are not listed. I'm definitely looking at the right branch/corresponding worker environment. In GH > settings > secrets > actions, I can see all my secrets, including those I added today. If I go inspect .github/workflows/wrangler-action.yml I have added my secrets to those that were already there, i.e.
env:
SECRET1: ${{ secrets.SECRET1 }}
SECRET2: ${{ secrets.SECRET2 }}
env:
SECRET1: ${{ secrets.SECRET1 }}
SECRET2: ${{ secrets.SECRET2 }}
As I say, previous secrets have come through. Do I need to do something e.g. forcibly restart my worker somehow?
2 Replies
Chaika
Chaika8mo ago
Did you add them to the secrets arguments? ex:

secrets: |
SECRET1
SECRET2
env:
SECRET1: ${{ secrets.SECRET1 }}
SECRET2: ${{ secrets.SECRET2 }}

secrets: |
SECRET1
SECRET2
env:
SECRET1: ${{ secrets.SECRET1 }}
SECRET2: ${{ secrets.SECRET2 }}
full example here: https://github.com/cloudflare/wrangler-action
GitHub
GitHub - cloudflare/wrangler-action: 🧙‍♀️ easily deploy cloudflare ...
🧙‍♀️ easily deploy cloudflare workers applications using wrangler and github actions - cloudflare/wrangler-action
Mitya
MityaOP8mo ago
Nope! 🤦‍♂️ Thank you. Can't believe I missed that. I mean, I've done it before!
Want results from more Discord servers?
Add your server