Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/frontend-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ jobs:
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}

- name: Set Convex GITHUB_TOKEN for skill imports
# skills.ts (repo skill import / SKILL.md fetch) calls the GitHub API
# from Convex egress — without a token it shares the 60/req/hr anon
# limit and fails. Set it on the SAME deployment CONVEX_DEPLOY_KEY
# targets (prod on main, staging otherwise), idempotently, so it rotates
# with the SKILLS_GITHUB_TOKEN secret. Fail-soft when the secret is unset.
run: |
cd packages/convex-backend
if [ -n "$SKILLS_GITHUB_TOKEN" ]; then
npx convex env set GITHUB_TOKEN "$SKILLS_GITHUB_TOKEN"
else
echo "SKILLS_GITHUB_TOKEN not set for this environment — skipping"
fi
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
SKILLS_GITHUB_TOKEN: ${{ secrets.SKILLS_GITHUB_TOKEN }}

- name: Determine environment
id: env
run: |
Expand Down
Loading