Skip to content

Commit 3ae7e4b

Browse files
committed
ci: fix encore auth - use ENCORE_AUTH_KEY instead of token
- Changed from ENCORE_AUTH_TOKEN to ENCORE_AUTH_KEY (app-specific) - Updated docs to clarify auth key vs personal token difference - Auth key must be created in Encore dashboard, not via 'encore auth token' - Fixes 500 error caused by using wrong credential type
1 parent 564590c commit 3ae7e4b

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
name: QA Suite (fix + rules + smoke + lint + typecheck + unit + e2e)
2626
runs-on: ubuntu-latest
2727
env:
28-
ENCORE_AUTH_TOKEN: ${{ secrets.ENCORE_AUTH_TOKEN }}
28+
ENCORE_AUTH_KEY: ${{ secrets.ENCORE_AUTH_KEY }}
2929

3030
steps:
3131
- name: Checkout code
@@ -53,14 +53,18 @@ jobs:
5353
5454
- name: Authenticate with Encore Cloud
5555
run: |
56-
if [ -z "$ENCORE_AUTH_TOKEN" ]; then
57-
echo "⚠️ WARNING: ENCORE_AUTH_TOKEN not set in GitHub Secrets"
56+
if [ -z "$ENCORE_AUTH_KEY" ]; then
57+
echo "⚠️ WARNING: ENCORE_AUTH_KEY not set in GitHub Secrets"
5858
echo " Encore builds requiring secrets will fail"
59-
echo " To fix: Add your Encore auth token as a GitHub Secret named 'ENCORE_AUTH_TOKEN'"
59+
echo " To fix:"
60+
echo " 1. Go to https://app.encore.cloud/screengraph-ovzi"
61+
echo " 2. Navigate to: App Settings → Auth Keys"
62+
echo " 3. Create new auth key"
63+
echo " 4. Add as GitHub Secret named 'ENCORE_AUTH_KEY'"
6064
exit 1
6165
else
6266
echo "🔐 Authenticating with Encore Cloud..."
63-
encore auth login --auth-key "$ENCORE_AUTH_TOKEN"
67+
encore auth login --auth-key "$ENCORE_AUTH_KEY"
6468
echo "✅ Encore authentication successful"
6569
fi
6670
@@ -116,13 +120,14 @@ jobs:
116120
# Environment:
117121
# - Uses standard ports from .env (4000 backend, 5173 frontend)
118122
# - In-memory database for tests
119-
# - ENCORE_AUTH_TOKEN: GitHub Secret required for accessing Encore Cloud secrets
123+
# - ENCORE_AUTH_KEY: GitHub Secret (app-specific auth key) for Encore Cloud authentication
120124
#
121125
# GitHub Secrets Setup:
122-
# 1. Go to: Settings → Secrets and variables → Actions
123-
# 2. Create new secret: ENCORE_AUTH_TOKEN
124-
# 3. Get token from: encore auth token (run locally)
125-
# 4. Paste into GitHub Secrets
126+
# 1. Go to: https://app.encore.cloud/screengraph-ovzi → App Settings → Auth Keys
127+
# 2. Create new auth key (NOT `encore auth token` - that's different!)
128+
# 3. Go to: GitHub repo → Settings → Secrets and variables → Actions
129+
# 4. Create new secret: ENCORE_AUTH_KEY
130+
# 5. Paste the auth key from step 2
126131
#
127132
# Testing before activation:
128133
# 1. Create feature branch

0 commit comments

Comments
 (0)