> ## Documentation Index
> Fetch the complete documentation index at: https://evalvcr.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Action & CI

> Run evalvcr in GitHub Actions with Job Summaries, SARIF 2.1.0, sticky PR comments, and Docker.

## Composite GitHub Action

Use `evalvcr` directly on standard `pull_request` workflows (never `pull_request_target`):

```yaml theme={null}
name: evalvcr CI

on:
  pull_request:

permissions:
  contents: read
  pull-requests: write
  security-events: write

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

      - name: Run deterministic VCR evals
        id: eval
        uses: evalvcr/evalvcr@v0.1.2
        with:
          paths: ./evals
          mode: strict
          threshold: "0.8"
          fail-on: error
          comment: "true"
          sarif-file: evalvcr.sarif

      - name: Upload SARIF to GitHub Code Scanning
        if: always()
        uses: github/codeql-action/upload-sarif@v4
        with:
          sarif_file: ${{ steps.eval.outputs.sarif-file }}
```

### Action Inputs & Outputs

* **Inputs:** `paths`, `mode`, `threshold`, `cassette-dir`, `report-file`, `sarif-file`, `fail-on` (`error` | `warning` | `off`, default `off`), `comment` (`true` | `false`), `github-token`, `node-version`, `evalvcr-version`.
* **Outputs:** `passed`, `score`, `findings-count`, `sarif-file`.

## Docker Container

Run the official multi-arch (`linux/amd64`, `linux/arm64`) non-root `node:22-alpine` container image from [Docker Hub](https://hub.docker.com/r/evalvcr/evalvcr):

```bash theme={null}
docker run --rm -v "$(pwd):/workspace" evalvcr/evalvcr:latest \
  run ./evals --mode strict --format pretty
```

## Optional Neon PR-Branch Storage

For teams tracking eval score regressions across GitHub pull requests, [`@evalvcr/storage-neon`](https://www.npmjs.com/package/@evalvcr/storage-neon) provides `NEON_SCHEMA_SQL`, `NeonStorageAdapter`, `createHttpSqlExecutor`, and `resolveBranchContext` without requiring Postgres for local runs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.