macOS
brew install sonar-scannerlocal Homebrew formula metadata
安装
brew install sonar-scannerlocal Homebrew formula metadata
sudo apk add sonar-scannerAlpine Linux edge package indexes · sonar-scanner · 来源: dl-cdn.alpinelinux.org
scoop install main/sonar-scannerScoop official bucket manifest trees · bucket/sonar-scanner.json · 来源: api.github.com
概览
Launcher to analyze a project with SonarQube
历史
SonarScanner CLI is SonarSource's command-line scanner for running SonarQube Server and SonarQube Cloud code analysis when there is no build-system-specific scanner. It is a CI/CD staple because it turns a checked-out source tree plus `sonar-project.properties` into an analysis uploaded to a Sonar service.
The public GitHub repository is the official scanner CLI source tree, and its tags include older 2.x releases. Current SonarSource documentation presents a maintained release line from 4.x through 8.x, with the README stating that project configuration is read from `sonar-project.properties` or passed on the command line.
Notable documented release changes include the 4.3 release using the SonarScanner name in logs, the 4.4 release adding a supported Docker image, the 5.0 release embedding Java 17, the 6.0 release adding a new bootstrapping mechanism and JRE provisioning for SonarQube 10.6+ and SonarCloud, and the 8.0.1 release updating embedded JREs to Java 21.
The scanner is distributed as OS-specific downloads, a Docker image, a generic JVM zip, and package-manager formulae. Homebrew analytics show tens of thousands of yearly installs, which fits its role as a common CI dependency rather than a library used inside application code.
Users create `sonar-project.properties` in the project root, run `sonar-scanner`, and provide server/project credentials through scanner parameters, CI secrets, or environment configuration rather than a dedicated credentials file. SonarSource warns users to prefer dedicated Maven, Gradle, or .NET scanners for those build systems.
SonarScanner CLI matters to package maintainers because CI images and developer machines need a reproducible scanner binary with the right Java behavior. Changes such as embedded JRE updates, Docker distribution, and auto-provisioning affect whether a package works in minimal runners, corporate networks, and long-lived build pipelines.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
sonar-project.properties${scanner.home}/conf/sonar-scanner.properties可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
sonar-scanner | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:sonar-scanner |
|---|---|
| 版本 | 8.1.0.6389 |
| 软件包管理器 | Homebrew |
| 主页 | https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/ |
| 仓库 | https://github.com/SonarSource/sonar-scanner-cli |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
sonar-scanner 8.1.0.6389-r0
Scanner CLI for SonarQube and SonarCloud
https://github.com/SonarSource/sonar-scanner-cli
sudo apk add sonar-scannermain/sonar-scanner
scoop install main/sonar-scanner来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.