CI Integration
Three ways to run Govard in CI, from most convenient to most manual. All support version pinning — never float on latest in a release pipeline. Replace <version> with a tag from the releases page.
GitHub Actions (recommended)
yaml
- uses: ddtcorex/setup-govard@v1
with:
version: '<version>'
- run: govard audit --ciOmit version (or pass latest) for throwaway branches only.
Container jobs
Any runner with Docker can use the published image directly:
yaml
jobs:
audit:
runs-on: ubuntu-latest
container: ghcr.io/ddtcorex/govard:<version>
steps:
- run: govard versionbash
# GitLab CI
audit:
image: ghcr.io/ddtcorex/govard:<version>
script:
- govard versionnpm install step
When the job already runs on Node 20+:
bash
npm i -g @ddtcorex/govard@<version>
govard versionSlow or restricted networks can point the wrapper at an internal mirror via the GOVARD_MIRROR environment variable (base URL for release assets).