CI integration
GitHub Action
Section titled “GitHub Action”banshee’s repository is itself a composite Action — it installs the binary and runs it, with findings shown inline on the PR:
- uses: octofhir/banshee@v0.2.2 with: command: lint # or: format args: migrations/SARIF code scanning
Section titled “SARIF code scanning”The Action writes a SARIF file for upload to GitHub code scanning:
- uses: octofhir/banshee@v0.2.2 with: sarif-file: banshee.sarif- uses: github/codeql-action/upload-sarif@v3 with: sarif_file: banshee.sarifbanshee lint --format sarif emits SARIF 2.1.0 directly if you’d rather run the
binary yourself.
Pre-commit
Section titled “Pre-commit”repos: - repo: https://github.com/octofhir/banshee rev: v0.2.2 hooks: - id: banshee-format - id: banshee-lintBoth hooks expect a banshee binary on PATH.
Exit codes
Section titled “Exit codes”0 clean · 1 findings or unformatted input · 2 error.