GitHub Action reference
usefidel/fidel-action@v3 runs in your pull request workflow. npx usefidel init adds it for you. The source and release notes are at github.com/usefidel/fidel-action.
Workflow
name: Design Validation
on:
pull_request:
types: [opened, synchronize]
permissions:
contents: read
pull-requests: write
id-token: write
jobs:
fidel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: usefidel/fidel-action@v3
Permissions
| Permission | Why |
|---|---|
contents: read | Reads fidel.config.json from the repository. |
pull-requests: write | Creates and updates the pull request comment. |
id-token: write | Authenticates the workflow with Fidel, so you store no secret. |
Inputs
| Input | Default | Description |
|---|---|---|
config-path | fidel.config.json | Path to the config file. |
github-token | ${{ github.token }} | Token used to create or update the pull request comment. |
fail-on-drift | off | Fail the job when Fidel confirms a violation against a fully verified result. |
fail-on-score | 0 | Deprecated. Use fail-on-drift. Ignored when fail-on-drift is set. |
An incomplete result always fails the job, whatever these inputs say. Fidel never reports a result it could not verify as a pass.
Outputs
| Output | Description |
|---|---|
result | pass, fail_violation, incomplete or fail_operational. |
completeness | complete, partial, unverified, configuration_required or operational_failure. |
verified | true only when everything required was checked. |
token-drift-count | Confirmed token drift. 0 when design system checks didn't run, which is not a pass. |
token-off-token-count | Confirmed off-token violations. |
token-confirmed-violation-count | The sum of the two counts above. |
figma-score | Lowest Figma comparison score. Empty when Figma checks didn't run. |
figma-issue-count | Total Figma differences. Empty when Figma checks didn't run. |
blocked-by | none, figma, tokens or figma,tokens. |
unverified-count | Checks that reached no verdict. |
partial-reasons | Comma-separated reasons the result is incomplete. |
retryable | true when running again could give a different answer. |
drift-enforcement | true when confirmed drift blocks this run. |
verdict | The full result as JSON. |
score, issues-count, drift-count, off-token-count and confirmed-violation-count are deprecated and will be removed in v4.
Every output is set on every exit path, so an empty value never means "fine".
Versioning
| Tag | Behavior |
|---|---|
@v3 | Follows the latest v3.x.x release. Recommended. |
@v3.x.y | Pinned. Never moves. |
v2 and earlier stopped working on September 23, 2026, when GitHub removed Node 20 from Actions runners.