Skip to content

Real provider vs the mock default

By default the Action runs on the mock provideruse-mock defaults to 'true'. That means no API key, zero cost, and deterministic output, so every PR can run the Action for free.

The mock is ideal for verifying that your plune.yaml is valid and the workflow is wired up, and for deterministic checks that don’t depend on a live model. It powers the safe default:

- uses: plune-ai/eval-action@v1
with:
config: plune.yaml
# use-mock: 'true' # default

To score against a real provider, set use-mock: 'false' and pass the key as an environment variable from a repository secret — never hard-code it:

- uses: plune-ai/eval-action@v1
with:
config: plune.yaml
use-mock: 'false'
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

The key your plune.yaml needs depends on its provider.type:

provider.typeSecret to pass as env
anthropicANTHROPIC_API_KEY
openaiOPENAI_API_KEY
openrouterOPENROUTER_API_KEY