Assert expected payloads
Use files globs and expected strings with fail-on: missing (default) so a broken QR code on a poster or page stops the build.
Catch broken labels, missing payloads and unreadable exports automatically before merging or releasing.
Use files globs and expected strings with fail-on: missing (default) so a broken QR code on a poster or page stops the build.
Consume result, compact report JSON (schema qrcode-barcode-scanner-action/1), full report-path with base64 raw bytes and qrscan-path.
Defaults to profile: full and budget-ms: 0 (no time limit) for repeatable runner verdicts, with workflow commands disabled around logs.
Prepare a known test image, run the scan and verify the returned value character by character.
Create a text QR code containing https://qrcode-ai.com/ and save it as qr-reference.png.
jobs:
codes:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- name: Verify qr-reference.png
id: codes
uses: qrcode-ai-com/qrcode-barcode-scanner-action@v1
with:
files: qr-reference.png
expected: https://qrcode-ai.com/
- run: echo "Result: ${{ steps.codes.outputs.result }}"GitHub Actions verifies qrscan via SHA-256, decodes the exact QR URL and sets steps.codes.outputs.result to pass.
Example result for qr-reference.png.
Workflow inputs, three-layer SHA-256 verification, glibc runners, log safety and licensing.
Add a step using qrcode-ai-com/qrcode-barcode-scanner-action@v1 (or pin to a full commit SHA) after actions/checkout, and provide workspace globs in files plus optional strings in expected. See the listing on GitHub Marketplace.
No. It downloads the official qrscan release archive anonymously over HTTPS, requests no extra workflow permissions and requires no QR Code AI account or API key.
It checks the downloaded SHA256SUMS file against its pinned hash, checks the release archive against SHA256SUMS, and checks the extracted qrscan binary against its pinned hash. Any mismatch aborts the step before execution.
GitHub-hosted Linux (x64 and arm64 with glibc 2.28 or later), macOS (Apple silicon and Intel) and Windows x64. Alpine or other musl Linux containers are refused before downloading.
fail-on defaults to missing (fails if any expected payload is absent). Set no-code to also fail on matched images containing zero codes, or never to report only. Unreadable files, patterns matching zero files and faults always fail the step.
It never opens decoded links, logs decoded text only as JSON strings with GitHub workflow commands disabled around them, and escapes all decoded strings in the job summary.
Yes. Both the action source and current qrscan archives are free and open source under the MIT licence (with retained Apache-2.0 notices for two reader parts). CI scanning never consumes QR Code AI generation credits or paid plans.
Consult the official listing and README for installation details, limits and supported formats.