Error: Failed to upload secrets.

https://github.com/willin/sso/blob/c445146f46d8acec953863253c96f743d1c29965/.github/workflows/deploy.yml#L54 Error: Failed to upload secrets. Error: 🚨 Action failed
- name: Deploy API Service
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: publish --config wrangler.toml
workingDirectory: apps/sso
secrets: |
AFDIAN_CLIENT_ID
AFDIAN_CLIENT_SECRET
AFDIAN_CALLBACK_URL
ALIPAY_APP_ID
ALIPAY_PRIVATE_KEY
ALIPAY_CALLBACK_URL
GITHUB_ID
GITHUB_SECRET
SESSION_SECRET
# SESSION_KEY
# GITHUB_CALLBACK_URL
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
AFDIAN_CLIENT_ID: ${{ secrets.AFDIAN_CLIENT_ID }}
AFDIAN_CLIENT_SECRET: ${{ secrets.AFDIAN_CLIENT_SECRET }}
AFDIAN_CALLBACK_URL: ${{ secrets.AFDIAN_CALLBACK_URL }}
ALIPAY_APP_ID: ${{ secrets.ALIPAY_APP_ID }}
ALIPAY_PRIVATE_KEY: ${{ secrets.ALIPAY_PRIVATE_KEY }}
ALIPAY_CALLBACK_URL: ${{ secrets.ALIPAY_CALLBACK_URL }}
GITHUB_ID: ${{ secrets.GH_CLIENT_ID }}
GITHUB_SECRET: ${{ secrets.GH_CLIENT_SECRET }}
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
# SESSION_KEY: ${{ secrets.SESSION_KEY }}
# GITHUB_CALLBACK_URL: ${{ secrets.GITHUB_CALLBACK_URL }}
- name: Deploy API Service
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
command: publish --config wrangler.toml
workingDirectory: apps/sso
secrets: |
AFDIAN_CLIENT_ID
AFDIAN_CLIENT_SECRET
AFDIAN_CALLBACK_URL
ALIPAY_APP_ID
ALIPAY_PRIVATE_KEY
ALIPAY_CALLBACK_URL
GITHUB_ID
GITHUB_SECRET
SESSION_SECRET
# SESSION_KEY
# GITHUB_CALLBACK_URL
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
AFDIAN_CLIENT_ID: ${{ secrets.AFDIAN_CLIENT_ID }}
AFDIAN_CLIENT_SECRET: ${{ secrets.AFDIAN_CLIENT_SECRET }}
AFDIAN_CALLBACK_URL: ${{ secrets.AFDIAN_CALLBACK_URL }}
ALIPAY_APP_ID: ${{ secrets.ALIPAY_APP_ID }}
ALIPAY_PRIVATE_KEY: ${{ secrets.ALIPAY_PRIVATE_KEY }}
ALIPAY_CALLBACK_URL: ${{ secrets.ALIPAY_CALLBACK_URL }}
GITHUB_ID: ${{ secrets.GH_CLIENT_ID }}
GITHUB_SECRET: ${{ secrets.GH_CLIENT_SECRET }}
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
# SESSION_KEY: ${{ secrets.SESSION_KEY }}
# GITHUB_CALLBACK_URL: ${{ secrets.GITHUB_CALLBACK_URL }}
GitHub
sso/.github/workflows/deploy.yml at c445146f46d8acec953863253c96f74...
A simple sso provider using Cloudflare Pages, D1, KV, Hono and Svelte - willin/sso
3 Replies
James
James•11mo ago
This is a really common issue with wrangler action v3. I’d recommend using version 2 and just pinning the wrangler version to 3.x. It’s a little slower than v3, but I’ve found it much more reliable.
Paul Wong-Gibbs
Paul Wong-Gibbs•11mo ago
Did anyone find a solution apart from using older versions of the wrangler action? (I haven't tried downgrading it).
James
James•11mo ago
I think if you pin wrangler to 3.15.0, that should also work. wranglerVersion: 3.15.0
Want results from more Discord servers?
Add your server