# 使用 Homebrew 安装 vet

查看 vet 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:vet
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install vet
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:vet
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/vet>
- **版本:** 1.18.1
- **来源摘要:** Policy driven vetting of open source dependencies
- **主页:** <https://safedep.io/>
- **仓库:** <https://github.com/safedep/vet>
- **上游文档:** <https://safedep.io/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/safedep/vet/archive/refs/tags/v1.18.1.tar.gz>
- **最后更新:** 2026-07-30T13:57:09Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- vet (cli)
- vet (别名)

## 依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.18.1
- 管理器更新时间: 2026-07-30
- 本地数据: OK
- 上游仓库: https://github.com/safedep/vet
- 检测到的最新版本: v1.18.1 (当前)
## 项目历史与用法

SafeDep vet is an open-source software-composition-analysis CLI for dependency vetting. It scans repositories, manifests, SBOMs, package URLs, container images, and related inputs, enriches dependencies with risk data, and evaluates policy rules so teams can block vulnerable, malicious, unhealthy, or non-compliant open-source components.

### 项目历史

The public repository was created on December 30, 2022, with early development releases appearing in January 2023. The project grew around the post-SolarWinds and post-typosquatting supply-chain-security problem: application teams needed automated dependency review that could be enforced locally and in CI rather than handled as a manual checklist.

SafeDep documentation describes Vet as a free, open-source SCA scanner for malicious, vulnerable, and risky dependencies in code and CI/CD. Its policy approach uses CEL expressions and policy suites, tying it to the broader policy-as-code movement rather than only to fixed vulnerability reports.

### 采用历史

Vet's adoption path is integration-driven. The project documents use in local scans, arbitrary CI systems, and a native GitHub Action for policy-driven guardrails. Its README also lists multi-ecosystem support across common package managers, container images, SBOM formats, and source repositories, which makes it useful as a cross-language dependency gate.

As SafeDep expanded, Vet became the CLI engine for a larger supply-chain-security platform. Official materials connect the CLI to OSV, OpenSSF Scorecard, deps.dev, SafeDep malware intelligence, active malware analysis, SARIF/JSON/CSV reporting, and SafeDep Cloud.

### 使用方式

Typical use starts with `vet scan -D /path/to/dir` to auto-discover known dependency manifests in a repository. Users can also scan a single manifest, a package URL, a Java archive, an OCI image, or an SBOM, then apply CEL filters or filter suites to fail a build when packages violate organization policy.

The tool is especially useful when teams want dependency governance to be versioned with the code. A repository can carry a YAML policy file that blocks critical vulnerabilities, disallowed licenses, low-maintenance projects, known malware indicators, or other package metadata conditions.

### 为什么软件包爱好者会关心

Vet sits in the package-nerd sweet spot where registry metadata, vulnerability feeds, maintainer health, malware signals, and CI enforcement all meet. It is less about one ecosystem's lockfile and more about making open-source dependency choice auditable across ecosystems.

### 时间线

- 2022-12-30: GitHub repository created.
- 2023-01-12: Early v0.0.1-dev release published.
- 2026-06-24: GitHub page lists v1.17.5 as the latest release.
- 2020s: SafeDep documentation positions Vet as a policy-as-code SCA scanner integrated with CI/CD and supply-chain intelligence sources.

### Related projects

- SafeDep Cloud: hosted intelligence and policy services used with Vet.
- vet-action: the GitHub Action integration for running Vet in CI.
- OSV, OpenSSF Scorecard, deps.dev, Syft, and SLSA: ecosystem data and standards referenced by the project documentation and README.

### 来源

- <https://api.github.com/repos/safedep/vet>
- <https://api.github.com/repos/safedep/vet/releases?per_page=100>
- <https://docs.safedep.io/vet/advanced/policy-as-code>
- <https://docs.safedep.io/vet/concepts/why-vet>
- <https://docs.safedep.io/vet/quickstart>
- <https://github.com/safedep/vet>


## 安全说明

没有找到 vet 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

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.


## Configuration files

- Unix: vet.yaml, vet.yml, .vet.yaml, .vet.yml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** vet
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Package ecosystem packages](https://pkg.so/zh-hans/package-ecosystem-tools/) - Matched package manager, installer, dependency, registry, or publishing metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Runtime dependency declared by Homebrew.
- [minder](https://pkg.so/zh-hans/brew/minder/) - Shares pkgdb curated category or tags: cli, policy-as-code, security, supply-chain-security.
- [zizmor](https://pkg.so/zh-hans/brew/zizmor/) - Shares pkgdb curated category or tags: cli, security, supply-chain-security.
- [dependency-check](https://pkg.so/zh-hans/brew/dependency-check/) - Shares pkgdb curated category or tags: cli, security, software-composition-analysis.
- [bagel](https://pkg.so/zh-hans/brew/bagel/) - Shares pkgdb curated category or tags: cli, security, supply-chain-security.
- [gittuf](https://pkg.so/zh-hans/brew/gittuf/) - Shares pkgdb curated category or tags: cli, security, supply-chain-security.
- [chain-bench](https://pkg.so/zh-hans/brew/chain-bench/) - Shares pkgdb curated category or tags: cli, security, supply-chain-security.
- [intercept](https://pkg.so/zh-hans/brew/intercept/) - Shares pkgdb curated category or tags: cli, policy-as-code, security.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, security.
- [chainloop-cli](https://pkg.so/zh-hans/brew/chainloop-cli/) - Security-sensitive metadata or terminology overlaps. Shared terms: chain, cli, code, policy, policy-as-code.

## Combined YAML source

View the package source record on GitHub. [combined/vet.yml](https://github.com/mxcl/pkgdb/blob/main/combined/vet.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
