Last updated: November 11, 2026View as Markdown

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

PermissionWhy
contents: readReads fidel.config.json from the repository.
pull-requests: writeCreates and updates the pull request comment.
id-token: writeAuthenticates the workflow with Fidel, so you store no secret.

Inputs

InputDefaultDescription
config-pathfidel.config.jsonPath to the config file.
github-token${{ github.token }}Token used to create or update the pull request comment.
fail-on-driftoffFail the job when Fidel confirms a violation against a fully verified result.
fail-on-score0Deprecated. 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

OutputDescription
resultpass, fail_violation, incomplete or fail_operational.
completenesscomplete, partial, unverified, configuration_required or operational_failure.
verifiedtrue only when everything required was checked.
token-drift-countConfirmed token drift. 0 when design system checks didn't run, which is not a pass.
token-off-token-countConfirmed off-token violations.
token-confirmed-violation-countThe sum of the two counts above.
figma-scoreLowest Figma comparison score. Empty when Figma checks didn't run.
figma-issue-countTotal Figma differences. Empty when Figma checks didn't run.
blocked-bynone, figma, tokens or figma,tokens.
unverified-countChecks that reached no verdict.
partial-reasonsComma-separated reasons the result is incomplete.
retryabletrue when running again could give a different answer.
drift-enforcementtrue when confirmed drift blocks this run.
verdictThe 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

TagBehavior
@v3Follows the latest v3.x.x release. Recommended.
@v3.x.yPinned. Never moves.

v2 and earlier stopped working on September 23, 2026, when GitHub removed Node 20 from Actions runners.