Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

plumber

> DevOps
Open source

Plumber detects CI/CD security issues in your GitHub workflows and gives you a score

767 stars0 likes1 views
WebsiteGitHub

About

Plumber detects CI/CD security issues in your GitHub workflows and gives you a score

CI/CD security scanner for GitLab CI and GitHub Actions

One CLI, one .plumber.yaml, one Rego policy engine.

  

  

Website • Docs • Discord • Issues


What Is Plumber?

Plumber scans CI/CD pipelines for risky patterns and security gaps.

  • GitLab CI: reads .gitlab-ci.yml, resolved includes, and repository settings.
  • GitHub Actions: reads .github/workflows/*.{yml,yaml} locally or through the GitHub API.
  • One config: .plumber.yaml contains provider-specific policy sections for GitLab and GitHub.

Plumber reports findings in the terminal, JSON, SARIF, GitLab SAST, CSV, OCSF, PBOM, and CycloneDX formats.

Start Here

Run your first scan before reading the full docs.

bash
brew tap getplumber/plumber
brew install plumber

plumber config generate # generate the default configuration file
plumber analyze

See the generated default config in this repo: defaultConfig/.plumber.yaml.

Plumber auto-detects the provider from your git remote. Use explicit flags when scanning a repo that is not the current checkout.

Choose Your Path

I want to... Use this Start here
Try Plumber locally CLI plumber analyze
Add checks to GitLab CI GitLab CI Component GitLab CI Component
Add checks to GitHub Actions GitHub Action GitHub Action
Audit many repos from a script CLI + JSON/SARIF Outputs
Tune policy rules .plumber.yaml Configuration

Local CLI

Install

bash
brew tap getplumber/plumber
brew install plumber

Other options:

  • mise use -g github:getplumber/plumber
  • Download a binary from GitHub Releases
  • Run the Docker image: getplumber/plumber

Full install docs:

  • GitLab: getplumber.io/docs/cli/gitlab#run-with-the-gitlab-ci-component
  • GitHub: getplumber.io/docs/cli/github#run-with-github-actions

Authenticate

GitLab:

bash
export GITLAB_TOKEN=glpat_xxxx

GitHub (preferred, uses the gh CLI's keyring):

bash
gh auth login

Alternative (CI runners, automation):

bash
export GH_TOKEN=ghp_xxxx

Local GitHub scans can run without a token for workflow-content checks. A token enables repo-level and action-metadata checks.

If a workflow uses an action hosted in an org with an IP allow list (which blocks the runner's GITHUB_TOKEN), set PLUMBER_METADATA_TOKEN to a token with public-repository read so Plumber can still resolve that action's version for the known-CVE check. Without it, Plumber falls back to an anonymous read and, if that is rate-limited too, skips the version check rather than guessing.

Run

Current repo:

bash
plumber analyze

Specific GitLab project:

bash
plumber analyze \
  --provider gitlab \
  --gitlab-url https://gitlab.com \
  --project group/project

Specific GitHub repo without a local clone:

bash
plumber analyze \
  --provider github \
  --github-url github.com \
  --project owner/repo

GitHub Action

  1. Add the official Plumber action to .github/workflows/plumber.yml:
    yaml
    name: Plumber
    
    on:
      pull_request:
      push:
        branches: [main]
    
    permissions:
      contents: read
      security-events: write
      # id-token: write   # uncomment to enable score-push below
    
    jobs:
      plumber:
        runs-on: ubuntu-24.04
        steps:
          - uses: actions/checkout@v6
          - uses: getplumber/plumber@
            with:
              # Set to `true` to publish an official Plumber score badge
              # (it makes your score and repo name public, see Score Push section below)
              score-push: false

To resolve action versions hosted in an org with an IP allow list, pass a public-repo-read token via the metadata-token input (kept in a secret):

yaml
        with:
          metadata-token: ${{ secrets.PLUMBER_METADATA_TOKEN }}

Full guide: getplumber.io/docs/cli/github#run-with-github-actions

GitLab CI Component

  1. Add the official Plumber component to .gitlab-ci.yml:
    yaml
    include:
      - component: gitlab.com/getplumber/plumber/plumber@
        inputs:
          # Set to `true` to publish an official Plumber score badge
          # (it makes your score and repo name public, see Score Push section below)
          score_push: false
  2. Add GITLAB_TOKEN in Settings -> CI/CD -> Variables. Use read_api + read_repository for scanning, or api if you want Plumber to post MR comments or badges.

Full guide: getplumber.io/docs/cli/gitlab#run-with-the-gitlab-ci-component

Score Push

Enabling score push publishes a self-updating A–E badge to the hosted score service. It's the only way to get an official Plumber score. It's only available in CI, not when running the CLI locally.

Display it with a badge in your README (swap in your platform/owner/repo):

markdown

⚠️ Opt-in and off by default. Enabling it makes your score and repository name public. Only the default branch's score is displayed. See score docs.

Common analyze flags

Flag Purpose
--score-endpoint Score service base URL (default https://score.getplumber.io). Override only for a self-hosted score service.
--platform Plumber platform base URL. Setting it turns on platform mode (see below) and pushes this run's full results there over CI OIDC, taking precedence over --score-push. Requires an id-token grant: permissions: id-token: write on GitHub, the component's id_tokens: block on GitLab.

Platform mode

Without --platform nothing changes: Plumber collects everything itself and evaluates one policy, exactly as it always has.

A plain-http --platform URL is refused unless its host is loopback (localhost, 127.0.0.0/8, ::1): the push carries the CI OIDC id-token and the response carries the run's own verdict, and either can be read or rewritten by anyone on the network path between the job and a plain-http endpoint. Pass --platform-allow-http (or PLUMBER_ANALYZE_PLATFORM_ALLOW_HTTP=1) to opt in for a trusted internal instance that has no TLS in front of it; https:// and loopback http:// need no opt-in.

With --platform, Plumber first reads the project's context from the platform - the resolved policy set and a cached settings snapshot - and uses it to decide what to collect and what to report:

  • Only the platform's policies are evaluated. A linked run reads the resolved policy set and evaluates each policy under its own control configuration; policies sharing a configuration are evaluated once. The local .plumber.yaml (or the built-in default) is not evaluated at all: if one is present the log says it was ignored. The job log prints one section per policy (its controls, findings and score), then a Platform verdict block with the platform's decision per policy, the platform's global score and the exit code. The local file decides nothing on a linked run, collection included: what Plumber fetches is the union of the resolved policies' own configurations, collected once, so a control any policy enables has its data collected even when the local file switches that control off. --controls and --skip-controls are ignored the same way (one notice each): the platform's policy configuration is the only way to exclude a control from a linked run.
  • The platform decides the exit code. --min-points, --min-score and the deprecated --threshold are ignored in platform mode (one notice each): each policy's own enforcement and min_points, as configured on the platform, decide whether the job fails. A degraded collection is pushed and gated by the platform, never failed locally.
  • No policy, nothing evaluated. If the platform is unreachable or resolves no policy for the project, the run evaluates nothing, prints one line saying so and writes no artifact. A linked run whose platform resolved no policy, or none of whose policies applied, is still reported to the platform, marked as having evaluated nothing, so the project's freshness reflects the analysis that just ran instead of the previous one; the platform records it as not evaluable, with no score and no verdict, and the platform's own answer to that push decides the exit code, exactly as it does on every other push. A platform the run could not reach is reported nothing at all: it assigned no policy because it answered nothing, so that run keeps pushing nothing and exits 0.
  • The CI configuration comes from the platform. Resolving include: directives needs an API a CI job token cannot reach, so platform mode reads the resolved configuration from the platform instead of asking the git host itself.
  • So do the project settings. Branch protections, merge-request approval rules and settings, the project's own merge settings, its security-policy project linkage, and CI/CD variable metadata are read from the snapshot rather than collected per run. That is what stops a project scanned once per policy file from re-fetching the same settings once per policy file. Variable values are never served and never needed: the controls read the protected and masked flags, not the secrets.
  • A job with no checkout still gets the pre-merge file, at the commit the snapshot covers. When the working tree is not the analysed project (GIT_STRATEGY: none, a sparse checkout, a ci_config_path in another project), the snapshot's copy of the project's own un-merged CI file stands in for the one that could not be read, so pipelineMustNotOverrideJobVariables still reports instead of abstaining. That copy is the file the platform collected when it built the snapshot, so it is used only when the run is analysing that same commit; at any other commit, and on a copy the platform flags as incomplete, the control reports not_evaluable rather than compare two different revisions.
  • A CI job needs no GitLab token. Platform mode is built for CI, and a job already has what the rest would have been fetched for: its own identity in the predefined CI_* variables, its checkout, and its environment. Set --platform and Plumber runs without a GITLAB_TOKEN, as it has since v0.4.50. A few checks still read the projects your pipeline includes from, and without a token those report not_evaluable rather than passing.
  • Your branch is evaluated against its own configuration. Plumber hashes the CI config in the checkout - the root file plus every local include - and compares it to what the platform's snapshot was resolved from. A branch that does not touch CI config matches and reuses the snapshot at no extra cost; a branch that does changes gets its own resolution from the platform.
  • Controls whose data is unavailable report not_evaluable, never a pass. If the platform cannot resolve a configuration, or reports a settings collection as failed, the controls that read it say so instead of reporting a clean result over data nobody collected. A lane the platform vouches for as genuinely empty is still a real verdict a control may fail on. A run prints which configuration it used and why, with no --verbose needed. A control whose data lane was not collected at all reports `not_evaluabl

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gocicdcompliancepipelinesecurity

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理