Skip to Content
NineTwo's

CI integration

Advisory-by-default security analysis with the NineTwo's GitHub Action.

GitHub Action

The official Action performs explicit-input security analysis, emits structured findings and SARIF, and can generate remediation suggestions. Advisory and read-only operation are the defaults. File writes, draft PR creation, and blocking gates are separate opt-ins.

name: security-review
on:
  pull_request:
  workflow_dispatch:

permissions:
  contents: read
  security-events: write # only when uploading SARIF
  pull-requests: write   # only when write-mode: pr

jobs:
  review:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: ninetwos/ninetwos-action@v0.1.1
        id: ninetwos
        with:
          model: zuv-0.5
          api-key: ${{ secrets.NINETWOS_API_KEY }}
          paths: |
            src/auth.ts
            src/session.ts
          suggestions: true
          write-mode: none
          gate: advisory
      - uses: github/codeql-action/upload-sarif@v3
        if: always()
        with:
          sarif_file: ${{ steps.ninetwos.outputs.sarif-file }}

Pin the Action to the immutable release commit when your supply-chain policy requires it. paths is an explicit newline-delimited allowlist; directories, globs, and implicit repository discovery are not supported.

Optional write modes

ModeEffect
noneDefault. Read-only analysis.
patchWrites a bounded .patch file; does not modify source.
applyModifies only paths explicitly listed in write-paths.
prCreates or reuses a draft remediation PR; never auto-merges.

Write modes require suggestions: true and explicit write-paths. .git and .github/workflows are never writable. Untrusted pull requests are skipped unless analysis, secret use, gates, and writes are separately authorized.

Blocking gates

gate: advisory is the default. To block, explicitly set both gate: enforce and a fail-on severity threshold. Blocking also requires the configured minimum confidence. The Action never converts estimates into a hard spending limit; use the server-authoritative usage and settlement outputs for reconciliation.

See the Action repository for all inputs and outputs.

On this page