Elffuss BraidHub

kikocis/continue public

Fix CONTINUE_API_KEY usage in GitHub workflow examples (#7975)

* Fix CONTINUE_API_KEY usage in GitHub workflow examples

- Updated snyk-mcp-continue-cookbook.mdx to use env variable setup for CONTINUE_API_KEY
- Updated netlify-mcp-continuous-deployment.mdx to include CONTINUE_API_KEY in env section
- Follows best practice of declaring environment variables in env section instead of inline secrets reference

Generated with Continue (https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>

* Update Netlify workflow to use proper Continue CLI setup

- Added Continue CLI installation step
- Added Continue CLI authentication with proper env variable setup
- Added GitHub Secrets section with required variables
- Updated workflow to use cn -p instead of npx with heredoc
- Follows same pattern as Snyk guide for consistency

Generated with Continue (https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>

---------

Co-authored-by: Continue Agent <agent@continue.dev>
Co-authored-by: Continue <noreply@continue.dev>
Changesetdfa6694c37705c36ae9d2fd5595dcf1c445f71de6bdde97975798a657c897e73
Authorcontinue[bot] <230936708+continue[bot]@users.noreply.github.com> · 2025-09-25 10:24 -07:00
CommitterGitHub <noreply@github.com> · 2025-09-25 10:24 -07:00
Parents2a6fa8b977ed

Browse the files at this changeset

2 files changed

modified docs/guides/netlify-mcp-continuous-deployment.mdx +24 −5
@@ -452,6 +452,14 @@
452452
453453 ## Automated Performance Checks
454454
455+### Add GitHub Secrets
456+
457+Navigate to **Repository Settings → Secrets and variables → Actions** and add:
458+
459+- `CONTINUE_API_KEY`: Your Continue API key from [hub.continue.dev/settings/api-keys](https://hub.continue.dev/settings/api-keys)
460+- `NETLIFY_AUTH_TOKEN`: Your Netlify personal access token
461+- `NETLIFY_SITE_ID`: Your Netlify site ID
462+
455463 ### GitHub Actions Performance Guard
456464
457465 Block PRs that degrade performance:
@@ -471,17 +479,28 @@
471479 with:
472480 node-version: "22"
473481
482+ - name: Install Continue CLI
483+ run: |
484+ npm install -g @continuedev/cli
485+ echo "✅ Continue CLI installed"
486+
487+ - name: Authenticate Continue CLI
488+ env:
489+ CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
490+ run: |
491+ cn auth login --api-key "$CONTINUE_API_KEY"
492+ echo "✅ Continue CLI authenticated"
493+
474494 - name: Deploy and Test Performance
475495 id: perf
476496 env:
477497 NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
478498 NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
479499 run: |
480- npx @continuedev/cli@latest << 'EOF'
481- Deploy PR preview and run Lighthouse.
482- Compare scores with main branch.
483- Output JSON with score deltas.
484- EOF > performance.json
500+ echo "🚀 Deploying PR preview and analyzing performance..."
501+ cn -p "Deploy PR preview and run Lighthouse.
502+ Compare scores with main branch.
503+ Output JSON with score deltas." > performance.json
485504
486505 - name: Comment Performance Results
487506 uses: actions/github-script@v7
modified docs/guides/snyk-mcp-continue-cookbook.mdx +3 −1
@@ -321,8 +321,10 @@
321321 echo "✅ Continue CLI installed"
322322
323323 - name: Authenticate Continue CLI
324+ env:
325+ CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
324326 run: |
325- cn auth login --api-key "${{ secrets.CONTINUE_API_KEY }}"
327+ cn auth login --api-key "$CONTINUE_API_KEY"
326328 echo "✅ Continue CLI authenticated"
327329
328330 - name: Run Security Scans