OPEN SOURCE / PUBLIC REPOSITORY

shipguard

One CI image for GitHub, GitLab, and Bitbucket that scans with a policy gate, builds and tests per language, and releases scanned, signed images.

Inspect GitHub repository
GoDevSecOpsGitHub ActionsGitLab CIBitbucket
shipguard scan · ci · release
scan gitleaks · opengrep · osv · trivy [gate: pass]
ci lint · test · build (Go, Node, Python, Ruby, Rust)
release shiptag tag → scan → push → cosign [vX.Y.Z]
4 scannersSecrets, SAST, SCA & IaC in one image
1 policy file.shipguard.yaml, read from the base branch
Scan → signThe scanned digest is the one pushed

Open-source project maintained on GitHub · Source code, releases, and usage docs are available in the public repository.

shipguard is a Go CLI and container image that brings security scanning, build and test, and releases to any CI pipeline, with the same behavior on GitHub, GitLab, and Bitbucket. It ships as a reusable GitHub workflow and composite action, a GitLab CI/CD Catalog component, and a Bitbucket pipe. It started as ci-template, a set of reusable GitHub Actions workflows, and grew into one tool for every SCM.

Three commands, one policy

  • shipguard scan: runs gitleaks, opengrep with curated rules, osv-scanner, and trivy (licenses and IaC) in one image, then applies one .shipguard.yaml to the results. On a pull request only newly introduced findings can fail the gate; on the default branch and on schedules everything above the threshold fails.
  • shipguard ci: detects Go, Node, Python, Ruby, or Rust and runs pinned, hash-verified lint, test, and build steps, replacing hand-written language pipelines.
  • shipguard release: versions the release with shiptag, packages binaries with GoReleaser, and builds the image to a local OCI layout. A blocking vulnerability stops the release before anything is pushed; the digest that was scanned is the digest pushed to GHCR and signed with cosign.

Gate integrity

A pull request cannot weaken its own gate: the policy is read from the base branch, scanner ignore files and inline suppressions are ignored, and every exception in .shipguard.yaml needs a reason and an expiry date. Secret values are redacted in every output, and tool or configuration errors fail closed with exit code 2. This portfolio and omp-cost release through shipguard release.

jobs:
  security:
    uses: faridlamaul/shipguard/.github/workflows/scan.yml@v1.4.0
    permissions: { contents: read, security-events: write, actions: read }
    with:
      scanners: all
      mode: enforce
  ci:
    uses: faridlamaul/shipguard/.github/workflows/build-test.yml@v1.4.0
    permissions: { contents: read }