{
  "slug": "semgrep-skips-binary-files-by-default-with-an-opt-out-flag-bb66ff762a3e",
  "title": "Semgrep skips binary files by default with an opt-out flag",
  "tools": [
    "semgrep"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-17T18:21:17.000Z",
  "announced_at": "2026-06-17T18:21:17.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a repository scan must include binary files, run `semgrep scan --no-exclude-binary-files <path>`; binary-file exclusion is enabled by default and detects files by matching their extensions to known magic bytes.",
    "examples": [
      "semgrep scan --no-exclude-binary-files <path>"
    ],
    "gotchas": [
      "Version: 1.167.0",
      "--no-exclude-binary-files: Negates `--exclude-binary-files`, allowing binary files to be scanned.",
      "<path> (TARGETS): File or folder to scan; without a target, `semgrep scan` searches the current working directory.",
      "Binary files such as images, archives, and compiled executables are skipped by default."
    ]
  },
  "why_it_matters": "Scan a repository containing binary files when those files need to be included.",
  "before": "The release note says to pass `--no-exclude-binary-files` to scan binary files as before.",
  "sources": [
    "https://github.com/semgrep/semgrep/releases/tag/v1.167.0",
    "https://docs.semgrep.dev/cli-reference"
  ],
  "rank": 0.92033,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-1a3d830fd76c5666-2:gate",
    "evidence_hash": "39d49128d110f0b1dca8eabb53b950a96ff7d7dc0e63b83f030d52072aa1ba81"
  },
  "review": {
    "draft_hash": "8556348bbee241370e7cb0f856461305b3cdf3909165dfacad0ccbfe13c57f66",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.70 (>= 0.6 needed)."
  }
}
