# CodeQL Bundle

命令行 CodeQL CLI 和标准查询包，用来扫描代码库里的漏洞。

> 这是 OpenNavo 上 CodeQL Bundle 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/codeql-bundle>

- **最新版本**: `2.27.6`
- **主页**: <https://codeql.github.com/>
- **分类**: [开发工具](https://opennavo.com/zh/categories/developer-tools), [安全与隐私](https://opennavo.com/zh/categories/security)
- **安装**: `brew install --cask codeql-bundle`
- **近 30 天安装**: 21
- **Homebrew**: 可以安装，由 Homebrew 更新
- **下载地址**: <https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.27.6/codeql-bundle-osx64.tar.zst>
- **SHA-256**: `7240fa82b9ec43d0dc6d00a59f457e639b891f7ec5bc11409d77cf6506a6255f`
- **附带命令**: codeql

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "binary": [
        "$HOMEBREW_PREFIX/Caskroom/codeql-bundle/2.27.6/codeql/codeql"
      ],
      "target": "$HOMEBREW_PREFIX/bin/codeql"
    },
    "phase": "install",
    "sources": [
      "$HOMEBREW_PREFIX/Caskroom/codeql-bundle/2.27.6/codeql/codeql"
    ],
    "target": "$HOMEBREW_PREFIX/bin/codeql",
    "type": "binary"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": "~/.codeql"
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

CodeQL Bundle 是 GitHub 的命令行包，给安全团队和开发者扫描代码库里的漏洞。它带上 CodeQL CLI，以及 C 和 C++、C#、Go、Java、JavaScript、Python、Ruby、Rust、Swift 的标准查询包，不必再单独拼装查询包，就能把项目做成数据库并查询。这个包可以免费从 GitHub 下载。在 macOS 上，它在 Apple 芯片和 Intel 上都原生运行，当前 CLI 支持 macOS 15 Sequoia 及之后的版本。来源：https://codeql.github.com/docs/codeql-overview/system-requirements/

## 系统要求

- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: 2.27.6 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/codeql-bundle.rb> · 核查于 2026-12-01
  - <https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.27.6/codeql-bundle-osx64.tar.zst>
  - SHA-256: `7240fa82b9ec43d0dc6d00a59f457e639b891f7ec5bc11409d77cf6506a6255f`
- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: 2.27.6 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/codeql-bundle.rb> · 核查于 2026-12-01
  - <https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.27.6/codeql-bundle-osx64.tar.zst>
  - SHA-256: `7240fa82b9ec43d0dc6d00a59f457e639b891f7ec5bc11409d77cf6506a6255f`

## 价格

- 免费 — 官网: <https://docs.github.com/en/code-security/how-tos/find-and-fix-code-vulnerabilities/scan-from-the-command-line/set-up-codeql-cli> · <https://docs.github.com/en/code-security/how-tos/find-and-fix-code-vulnerabilities/scan-from-the-command-line/set-up-codeql-cli> · 核查于 2026-11-23

## CodeQL Bundle 的安全事实

这里只列可以核验的事实，并注明来源和日期，不是安全认证。要检查你下载的文件，可以用 OpenNavo 在本机扫描。

- <https://github.com/github/codeql-action> · 是否开源: 是 — <https://github.com/github/codeql-action> · 核查于 2026-11-23

## 卸载

- `brew uninstall --cask codeql-bundle`

普通卸载会删除应用本身，设置和缓存会保留。

### 深度清理（可选）

- `brew uninstall --zap --cask codeql-bundle`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `~/.codeql` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/codeql-bundle.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-01；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 20230524 (2023-05-24)

Bundles CodeQL CLI v2.13.3
- ([changelog](https://github.com/github/codeql-cli-binaries/blob/HEAD/CHANGELOG.md), [release](https://github.com/github/codeql-cli-binaries/releases/tag/v2.13.3))

Includes the following CodeQL language packs from [`github/codeql@codeql-cli/v2.13.3`](https://github.com/github/codeql/tree/codeql-cli/v2.13.3):
- `codeql/cpp-queries` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/cpp/ql/src/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/cpp/ql/src))
- `codeql/cpp-all` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/cpp/ql/lib/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/cpp/ql/lib))
- `codeql/csharp-queries` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/csharp/ql/src/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/csharp/ql/src))
- `codeql/csharp-all` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/csharp/ql/lib/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/csharp/ql/lib))
- `codeql/go-queries` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/go/ql/src/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/go/ql/src))
- `codeql/go-all` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/go/ql/lib/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/go/ql/lib))
- `codeql/java-queries` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/java/ql/src/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/java/ql/src))
- `codeql/java-all` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/java/ql/lib/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/java/ql/lib))
- `codeql/javascript-queries` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/javascript/ql/src/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/javascript/ql/src))
- `codeql/javascript-all` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/javascript/ql/lib/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/javascript/ql/lib))
- `codeql/python-queries` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/python/ql/src/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/python/ql/src))
- `codeql/python-all` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/python/ql/lib/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/python/ql/lib))
- `codeql/ruby-queries` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/ruby/ql/src/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/ruby/ql/src))
- `codeql/ruby-all` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/ruby/ql/lib/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/ruby/ql/lib))
- `codeql/swift-queries` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/swift/ql/src/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/swift/ql/src))
- `codeql/swift-all` ([changelog](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/swift/ql/lib/CHANGELOG.md), [source](https://github.com/github/codeql/tree/codeql-cli/v2.13.3/swift/ql/lib))

## 资料与来源

- <https://opennavo.com/zh/apps/codeql-bundle>
- <https://opennavo.com/zh/apps/codeql-bundle/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/codeql-bundle.rb> · 核查于 2026-12-01
- <https://formulae.brew.sh/cask/codeql-bundle>
- <https://docs.github.com/en/code-security/how-tos/find-and-fix-code-vulnerabilities/scan-from-the-command-line/set-up-codeql-cli> · 核查于 2026-11-23
- <https://github.com/github/codeql-action> · 核查于 2026-11-23
