1. Resources
  2. /
  3. Plugins
  4. /
  5. cognium-buildkite-plugin

cognium Buildkite plugin

Buildkite plugin for cognium, the open-source checking engine behind Cognium Autonomous Loop. It runs cognium scan (deterministic static analysis with taint tracking, SARIF output) in your pipeline.

v2.0.0 moves from cognium-dev to cognium 5. cognium-dev is replaced by cognium; the options below are unchanged, and package-version now names a cognium version (default 5.0.0). Pin #v1.1.0 to keep the old cognium-dev install.

Example

steps:
  - label: ":shield: cognium scan"
    command: ":"
    plugins:
      - cogniumhq/cognium#v2.0.0:
          path: .

The plugin provides the Buildkite command hook, so you do not need to add a separate command: step for the Cognium scan.

Configuration

Option Type Default Description
path string . Path to scan
package-version string 5.0.0 Version of cognium to install
format string text Output format: text, json, or sarif
output string — Output file
severity string — Severity filter
category string — Category filter
fail-on-findings boolean false Whether security findings should cause the Buildkite step to fail

Finding behavior

By default, security findings are reported without failing the Buildkite step:

steps:
  - label: ":shield: cognium scan"
    command: ":"
    plugins:
      - cogniumhq/cognium#v2.0.0:
          path: .
          fail-on-findings: false

To use Cognium as a blocking security gate, set fail-on-findings to true:

steps:
  - label: ":shield: cognium scan"
    command: ":"
    plugins:
      - cogniumhq/cognium#v2.0.0:
          path: .
          fail-on-findings: true

Scanner errors and installation failures remain non-zero regardless of fail-on-findings. cognium exits 1 for findings at or above severity, 2 for a usage or config error and 3 only when asked to fail on files it could not fully analyse.

SARIF / JSON artifacts

To make a SARIF or JSON report available as a Buildkite artifact, configure the plugin’s output and the step’s artifact_paths:

steps:
  - label: ":shield: cognium scan"
    artifact_paths:
      - "cognium-results.sarif"
    plugins:
      - cogniumhq/cognium#v2.0.0:
          path: .
          format: sarif
          output: cognium-results.sarif

Requirements

  • Buildkite Agent
  • Node.js >= 20.19.0
  • npm

How It Works

The plugin installs the specified version of cognium into a temporary directory using npm and runs cognium scan against the configured path.

Buildkite
    |
    v
Cognium Buildkite Plugin
    |
    v
Install cognium
    |
    v
cognium scan
    |
    v
Security findings

If cognium reports security findings, the plugin follows the fail-on-findings setting. When false, findings are reported without failing the Buildkite step. When true, findings cause the step to fail.

Scanner and installation errors remain non-zero regardless of fail-on-findings.

Development

Run the Buildkite plugin linter:

docker run -it --rm -v "$PWD:/plugin:ro" buildkite/plugin-linter --id cogniumhq/cognium --path /plugin

Run the plugin tests:

docker run -it --rm -v "$PWD:/plugin:ro" buildkite/plugin-tester

LICENSE

MIT

The plugins listed on this webpage are provided for informational purposes only. They have not undergone any formal security review or assessment. While we strive to provide useful resources, we cannot guarantee the safety, reliability, or integrity of these plugins. Users are strongly advised to conduct their own security evaluations before downloading, installing, or using any plugin. By using these plugins, you acknowledge and accept any risks associated with their use. We disclaim any liability for any harm or damages arising from the use of the plugins listed.

You deserve better CI.

Get started for free with a full month of our all-access trial.

Buildkite Pipelines

Platform

  1. Pipelines
  2. Public pipelines
  3. Test Engine
  4. Package Registries
  5. Pricing

Hosting options

  1. Self-hosted agents
  2. Mac hosted agents
  3. Linux hosted agents
  4. Windows hosted agents

Resources

  1. Docs
  2. Blog
  3. Changelog
  4. Example pipelines
  5. Plugins
  6. Webinars
  7. Case studies
  8. Events
  9. Migration Services

Company

  1. About
  2. Careers
  3. Press
  4. Security
  5. Brand assets
  6. Contact

Solutions

  1. Replace Jenkins
  2. Workflows for MLOps
  3. Testing at scale
  4. Monorepo mojo
  5. Bazel orchestration

Compare

  1. All comparisons
  2. Buildkite vs GitHub Actions
  3. Buildkite vs Jenkins
  4. Buildkite vs CircleCI
  5. Buildkite vs Harness
  6. Buildkite vs CloudBees
  7. Buildkite vs Blacksmith
  8. Buildkite vs Depot
  9. Buildkite vs Dagger

Legal

  1. Terms of Service
  2. Acceptable Use Policy
  3. Privacy Policy
  4. Subprocessors
  5. Service Level Agreement
  6. Supplier Code of Conduct
  7. Modern Slavery Statement

Support

  1. System status
  2. Forum
© Buildkite Pty Ltd 2026