CI/CD Integration
Jex supports scoped CI/CD tokens for use in automated pipelines without exposing developer credentials.
Creating a CI/CD token
- Go to Dashboard → Tokens → Create token
- Give it a descriptive name (e.g.
github-actions-prod) - Select the environment scope (
prod,staging, etc.) - Copy the token — it won’t be shown again
Using the token in a pipeline
Set the token as a secret in your CI environment (e.g. GitHub Actions secrets), then use it with the Jex CLI:
# .github/workflows/deploy.yml
env:
JEX_TOKEN: ${{ secrets.JEX_TOKEN }}
steps:
- name: Deploy with secrets
run: jex run --token $JEX_TOKEN -- ./deploy.sh
Note:
--tokenflag support is coming in v0.2. For now, save the token to~/.jex/tokenin your pipeline setup step.
Revoking a token
Tokens can be revoked instantly from the dashboard (Tokens → Revoke).
Revocation is immediate — the next API call using the revoked token returns 401.
There is no cache.
Security recommendations
- Create a separate token per pipeline and environment
- Name tokens descriptively so you can audit them
- Rotate tokens after team member offboarding
- Never use a personal session token in CI — use CI/CD tokens exclusively