GitHub Action
name: BoardReadyOps
on:
pull_request:
push:
branches: [main]
jobs:
boardreadyops:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: oaslananka/boardreadyops@9bc8a075d885ad1182e2ad4fcd4c9160f8160c94 # v1.31.2
with:
config: boardreadyops.yml
This example pins a reviewed, immutable Action commit. Find the latest
published version in GitHub Releases;
the version prepared in a release pull request may not be available yet. The
floating v1 alias moves with stable releases.
Inputs
| Name | Default | Description |
|---|---|---|
path |
. |
Directory to scan. |
project |
`` | Explicit .kicad_pro path. If omitted, all discovered projects are scanned. |
config |
boardreadyops.yml |
Path to boardreadyops.yml. |
mode |
warn |
warn or enforce |
release-mode |
`` | Manufacturing release context. One of prototype, pilot, production. Empty disables release mode behavior. |
safe-mode |
false |
Disable repository plugins, notifier dispatch, and trusted GitHub write operations for restricted execution. |
require-kicad |
false |
Fail when kicad-cli is not available. |
kicad-cli |
`` | Explicit kicad-cli path. |
bom |
auto |
BOM source path or "auto". |
pinmap |
`` | Pinmap file path. Empty disables pinmap rules. |
variant |
`` | KiCad variant name used by variant-aware BoardReadyOps rules. |
gate |
`` | Gate name from boardreadyops.yml. Empty auto-detects pull_request, main, or release. |
sarif |
boardreadyops.sarif.json |
Output SARIF path. Empty disables. |
json |
boardreadyops.findings.json |
Output JSON findings path. Empty disables. |
markdown |
boardreadyops.report.md |
Output Markdown report path. Empty disables. |
hbom |
`` | Output CycloneDX hardware SBOM path. Empty disables. |
upload-sarif |
true |
Upload SARIF to GitHub Code Scanning. |
upload-artifacts |
true |
Upload reports as workflow artifacts. |
github-token |
${{ github.token }} |
Token used to comment on pull requests, upload SARIF, and read the earlier run that the fabrication diff compares against. Defaults to the workflow's own token; override only to post as a different identity. |
comment-pr |
true |
Post a sticky Markdown comment on pull requests. |
comment-format |
report |
Pull request comment style. One of report (full Markdown report) or review (compact release-review summary). |
artifact-name |
boardreadyops |
Workflow artifact name. |
fail-on |
high |
Severity threshold above which the action exits non-zero. One of critical, high, medium, low, never. |
annotations |
true |
Emit ::error/::warning workflow annotations. |
log-level |
info |
Log level. One of debug, info, warn, error, critical, silent. |
log-format |
text |
Log format. One of text, json. |
log-file |
`` | Optional log file path inside the workspace. |
log-file-max-bytes |
`` | Rotate the log file after this many bytes. Empty uses the default. |
log-file-retention |
`` | Number of rotated log files to keep. Empty uses the default. |
cloud-upload |
`` | Upload findings and evidence pack to BoardReadyOps Cloud. One of metadata, snapshots, source. Empty disables. |
native-visuals |
false |
Explicit consent to publish source-derived native PCB/schematic SVGs. Only applies with cloud-upload: snapshots and a runs:write token. Disabled by default. Never uploads images in safe-mode. |
cloud-server |
https://app.boardreadyops.com |
BoardReadyOps Cloud instance URL. |
Outputs
| Name | Description |
|---|---|
findings |
Total finding count. |
critical |
Count of critical findings. |
high |
Count of high findings. |
medium |
Count of medium findings. |
low |
Count of low findings. |
sarif-path |
SARIF output path if produced. |
json-path |
JSON output path if produced. |
markdown-path |
Markdown output path if produced. |
hbom-path |
CycloneDX hardware SBOM output path if produced. |
review-url |
URL of the created or updated cloud hardware review. |
cloud-run-id |
Ingested cloud release run identifier. |
evidence-pack-id |
Deterministic SHA-256 evidence digest for this review revision. |
Pull request comments
When comment-pr is enabled, the sticky pull request comment summarizes the current findings. With comment-format: review, BoardReadyOps also attempts an exact-base hardware-impact comparison: the exact pull request base SHA is compared with the exact analyzed head SHA using a BoardReadyOps JSON artifact from the same workflow identity. There is no latest-run or same-branch fallback. If exact-base evidence is unavailable, the comment says so and the current-run decision remains valid. The default report format keeps its existing fabrication-diff behavior when a prior report artifact can be discovered.
Exact-base artifact discovery uses the job-scoped repository GITHUB_TOKEN and needs actions: read. The historical/current detailed report artifacts remain in the target repository; only the bounded structured impact summary is eligible for hosted result publication.
Native visual publication (explicit opt-in)
The Action normally sends findings only, even when cloud upload is configured.
To publish source-derived KiCad PCB/schematic artwork to a private Review,
set both cloud-upload: snapshots and native-visuals: "true" and provide
an explicitly authorized, repository-scoped BOARDREADYOPS_TOKEN with runs:write.
Use an exact project input to limit which board is shared, and install a
compatible kicad-cli on the runner. Native SVG publishing is disabled in
safe-mode, with cloud-upload: metadata, without a token, or if no native
KiCad output was produced. Other projects' raw CAD source files are never uploaded.
The GitHub App's separate OIDC readiness-result callback only reports findings. It does not grant artwork publishing privileges or substitute for the token-backed Review API. Do not enable this input for customer designs without their informed consent. A published SVG is not a DRC/ERC or manufacturing pass.
Notifiers
The Action honors the repository notifiers configuration from boardreadyops.yml. Webhook URLs, Telegram bot tokens, and SMTP credentials must be supplied through workflow environment variables or secrets referenced by the configured webhookEnv, botTokenEnv, or smtpEnv names. Delivery is best-effort: missing credentials, severity filters, and notifier failures do not change the Action exit code. Action notifications include a link to the current workflow run when GitHub exposes the run metadata.