GitHub Actions · v1.1.0 live · @v1

Free GitHub CI Action (einvoice-validate-action)

Catch broken e-invoice templates in pull requests before they reach customers. Checks UBL, CII and ZUGFeRD/Factur-X PDFs against CEN EN 16931 and KoSIT XRechnung 3.0, emitting inline annotations with rule IDs and business terms.

Quickstart (v1.1.0 — live today; API mode is the default)

Available now at github.com/wsystemdev/einvoice-validate-action. The floating @v1 tag points at v1.1.0 (2ad1774), a non-breaking release. Existing workflows that omit mode keep calling the hosted W System API. Without a key, each runner IP gets 20 free calls/day; for regular CI runs get a free API key (500 units/month, no card).

.github/workflows/einvoices.yml
name: e-invoices
on: [push, pull_request]
jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      # generate your test invoices here, e.g. `make invoices`
      - uses: wsystemdev/einvoice-validate-action@v1
        with:
          files: |
            build/invoices/**/*.xml
            build/invoices/**/*.pdf
          # api-key: ${{ secrets.WSYSTEM_API_KEY }}   # optional: 500 free units/mo

Inputs and outputs

InputDefaultWhat it does
files**/*.xml if both files and paths are omittedGlobs, paths or a directory of XML (UBL, CII) or ZUGFeRD/Factur-X PDF files. paths is an alias.
rulesautoauto, en16931 or xrechnung. profile is an alias.
modeapi when omittedapi (default, hosted W System API), local (opt-in offline; Docker with pip fallback), docker (strict Docker only) or pip. engine is an optional alias for mode.
imageghcr.io/wsystemdev/einvoice-validator:0.1.0-beta.2Pinned container used when mode is local or docker.
api-keyemptyOptional API key for API mode (X-API-Key). Free key: 500 units/month; without one, 20 free calls/day per runner IP.
api-urlhttps://api.wsystem.devHosted API base URL when mode is api.
fail-onerrorWhen to fail the step: error, warning or none. fail-on-warnings: true is a v1 alias for fail-on: warning.
report-formatnone in API mode; both in offline modesWrite json, sarif, both or none.

Outputs: checked, failed, valid, json-report, sarif-report and rule-pack. Writes a Markdown summary table to $GITHUB_STEP_SUMMARY. Offline modes also write JSON and SARIF reports by default.

Opt-in offline mode (mode: local · live in v1.1.0)

Offline validation is opt-in in the shipped @v1 / v1.1.0 Action: set mode: local (engine is an optional alias for mode). API mode stays the default when mode is omitted, so existing @v1 workflows are unchanged. mode: local runs the pinned engine (ghcr.io/wsystemdev/einvoice-validator:0.1.0-beta.2), which is publicly pullable, on the runner with --network none: no API key, no rate limit and no invoice data leaving the runner. If Docker cannot pull the image, local mode automatically falls back to a pinned pip install of einvoice-validator v0.1.0-beta.2 (pip install git+https://github.com/wsystemdev/[email protected]).

.github/workflows/einvoices.yml (mode: local)
      - uses: wsystemdev/[email protected]
        with:
          mode: local   # opt-in offline; API mode stays the default when mode is omitted
          files: |
            build/invoices/**/*.xml
            build/invoices/**/*.pdf
          rules: auto

Licences, third-party notices and scope

  • W System toolkit code: wsystem/einvoice (PHP SDK) and wsystemdev/einvoice-validator (free CLI and container) are licensed under Apache-2.0. wsystemdev/einvoice-validate-action v1 is MIT-licensed.
  • CEN/TC 434 EN 16931 artefacts (v1.3.16): included unmodified under the European Union Public Licence (EUPL-1.2) with upstream CEN notices preserved (ConnectingEurope/eInvoicing-EN16931).
  • KoSIT XRechnung configuration (3.0.2 / 2026-08-31) and Schematron (2.4.0): included unmodified under Apache-2.0 with KoSIT NOTICE pass-through (itplr-kosit/validator-configuration-xrechnung).
  • Saxon-HE (saxonche / SaxonC-HE): Mozilla Public License 2.0 (MPL-2.0).
  • Peppol BIS Billing 3.0 rules: PEPPOL-EN16931-* rules are not shipped (pending OpenPeppol IPR clearance). Output marks PeppolBIS3: false.

Disclaimer: technical validation and document generation against the official EN 16931 and XRechnung rule sets. A technically valid file is not tax or legal advice.