Skip to content

runlit-dev/action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

runlit GitHub Action

license: MIT

Evaluate AI-generated code in your CI pipeline. Wraps the runlit CLI as a GitHub Action.

Usage

# .github/workflows/runlit.yml
name: runlit eval

on:
  pull_request:
    types: [opened, synchronize]

jobs:
  eval:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Evaluate PR
        uses: runlit-dev/action@v1
        with:
          api-key: ${{ secrets.RUNLIT_API_KEY }}
          # Optional overrides:
          # block-threshold: "50"   # fail if score < 50 (default)
          # warn-threshold: "70"    # warning annotation if score < 70 (default)

Inputs

Input Required Default Description
api-key runlit API key (store in GitHub Secrets)
block-threshold 50 Score below which the action fails
warn-threshold 70 Score below which a warning annotation is added
api-url https://api.runlit.dev Override for self-hosted deployments

Outputs

Output Description
score Composite eval score (0–100)
grade PASS, WARN, or BLOCK
eval-id UUIDv7 eval identifier for audit trail

How it works

  1. Action installs the runlit CLI via go install github.com/runlit-dev/cli@latest
  2. CLI fetches the PR diff from GitHub (using GITHUB_TOKEN, automatically available in Actions)
  3. Diff is sent to api.runlit.dev/v1/eval with your API key
  4. Score and grade are posted as a PR comment by the API server
  5. Action exits with code 1 if grade is BLOCK (fails the check)
  6. Job summary is written with the full signal breakdown

GitHub App vs Action

The GitHub App (install at github.com/apps/runlit) is the recommended approach — zero config, works automatically on every PR. The Action is for teams that need CI-level control over when evals run or want to integrate the score into custom workflows.

License

MIT — see LICENSE.

About

runlit GitHub Action — wrap the CLI in your CI pipeline. MIT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors