Run Bifrost static-analysis policies in GitHub
Actions and upload the SARIF report to GitHub code scanning. Findings appear
as pull-request annotations, and the job gates on a strict exit-code
contract: 0 is clean, 1 is a policy gate failure (a finding at or above
the fail-on threshold or an orphaned suppression decision), and 2 is
unreliable — a run that could not prove its own completeness and
must never be treated as clean.
name: bifrost-policies
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
security-events: write
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: BrokkAi/bifrost-policy-scan@v0Each Bifrost release publishes a matching vX.Y.Z tag here, and that tag's
version input defaults to the same Bifrost release, so the action and the
binary it installs stay in lockstep — including policy and RQL syntax
compatibility.
@v0 follows the newest release and is what the quick start above uses. Pin
an exact tag when a gate has to stay reproducible:
- uses: BrokkAi/bifrost-policy-scan@v0.11.3The pinned example names the release this copy of the action was published for, so it is always a tag that exists.
Inputs, outputs, diff-aware gating (diff-base), committed baselines for
legacy repositories, caching, and suppression formats are documented at
CI Gating with GitHub Actions.
This repository is a generated alias, synced on every release from the
canonical action at
BrokkAi/bifrost/.github/actions/policy-scan.
Do not open pull requests here; changes belong in
BrokkAi/bifrost.