DOCS
GitHub Action
The composite action downloads a prebuilt release, checks SHA256SUMS, runs balerx scan --quiet, and uploads SARIF. --quiet keeps the setup hint out of the job log. The scan step records the exit code so the upload still runs when --fail-on exits 1. Code scanning must be enabled on the repository. The workflow needs security-events: write. Default path is ., which scans the checked-out repository root. Nested copies of known config names are not walked.
name: Balerx Gate
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
security-events: write
jobs:
scan:
runs-on: ubuntu-latest
steps:
- name: Check out the project
uses: actions/checkout@v4
- name: Scan
uses: wrjewski/balerx/.github/actions/scan@main
with:
path: .
fail-on: high
sarif-file: balerx.sarifversion pins a release (0.1.8). Leave it empty to use the latest release. The action lives at .github/actions/scan in https://github.com/wrjewski/balerx. The scan is the same offline balerx scan as on a laptop. It does not run balerx setup.
