# 使用 Homebrew, Nix 安装 action-validator

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

## 安装

```sh
sudo av install brew:action-validator
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install action-validator
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#action-validator
```

  证据: nixpkgs package indexes: pkgs/by-name/ac/action-validator/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:action-validator
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/action-validator>
- **版本:** 0.9.0
- **来源摘要:** Tool to validate GitHub Action and Workflow YAML files
- **主页:** <https://github.com/mpalmer/action-validator>
- **仓库:** <https://github.com/mpalmer/action-validator>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://static.crates.io/crates/action-validator/action-validator-0.9.0.crate>
- **最后更新:** 2026-05-26T23:37:47-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- action-validator (cli)
- action-validator (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.9.0
- 管理器更新时间: 2026-05-26
- 本地数据: OK
- 上游仓库: https://github.com/mpalmer/action-validator
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

action-validator is a standalone linter for GitHub Actions and workflow YAML files, checking structure against schemas and validating path globs.

### 项目历史

The repository was created in October 2021 and published v0.1.0 the same day. The README describes a focused Rust-based tool intended for pre-commit hooks and similar validation workflows.

### 采用历史

The official README documents several distribution paths: pre-built binaries from GitHub releases, cargo, asdf, mise, npm packages, direct repository builds, GitHub Action usage, and pre-commit integration. That spread is unusually broad for a small validator and reflects demand across Rust, Node, version-manager, and CI users.

### 使用方式

The core workflow is to pass one or more GitHub workflow or action YAML files to action-validator. The README also shows pre-commit hook usage, npx usage, a Node API, and running the validator inside GitHub Actions.

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

action-validator is package-nerd friendly because it packages a CI correctness check as a local command, not only as hosted platform behavior. It is also notable for offering the same validation idea through native binaries, cargo, npm, asdf, mise, pre-commit, and a composite GitHub Action.

### 时间线

- 2021-10-26: GitHub repository created and v0.1.0 published.
- 2023-03-03: v0.4.0 added WASM builds, multiple filenames, and older-distro binary support.
- 2024-02-23: v0.6.0 added negative-glob support and tests.
- 2025-08-20: v0.8.0 added --rootdir support.
- 2026-04-09: v0.9.0 improved file discovery using git-known files and added a pre-built GitHub Action.

### Related projects

- Related projects include SchemaStore-backed validators, pre-commit hooks, GitHub Actions workflow linters, and CI policy checks.

### 来源

- <https://api.github.com/repos/mpalmer/action-validator>
- <https://api.github.com/repos/mpalmer/action-validator/releases>
- <https://raw.githubusercontent.com/mpalmer/action-validator/main/README.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

## 其他软件包管理器记录

- Nix - action-validator: normalized package name match | nixpkgs package indexes: pkgs/by-name/ac/action-validator/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [check-jsonschema](https://pkg.so/zh-hans/brew/check-jsonschema/) - Shares pkgdb curated category or tags: cli, developer-tools, validation.
- [epubcheck](https://pkg.so/zh-hans/brew/epubcheck/) - Shares pkgdb curated category or tags: cli, developer-tools, validation.
- [kubeconform](https://pkg.so/zh-hans/brew/kubeconform/) - Shares pkgdb curated category or tags: cli, developer-tools, validation.
- [ruff](https://pkg.so/zh-hans/brew/ruff/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, rust.
- [ansible-lint](https://pkg.so/zh-hans/brew/ansible-lint/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, yaml.
- [yamllint](https://pkg.so/zh-hans/brew/yamllint/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, yaml.
- [rumdl](https://pkg.so/zh-hans/brew/rumdl/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, rust.
- [kube-linter](https://pkg.so/zh-hans/brew/kube-linter/) - Shares pkgdb curated category or tags: cli, developer-tools, linter, yaml.
- [action-docs](https://pkg.so/zh-hans/brew/action-docs/) - Package names and metadata indicate a similar tool family. Shared terms: action, actions, cli, developer, developer-tools.
- [actions-languageserver](https://pkg.so/zh-hans/brew/actions-languageserver/) - Both packages work with overlapping file formats or content types. Shared terms: actions, cli, developer, developer-tools, files.
- [actions-up](https://pkg.so/zh-hans/brew/actions-up/) - Both packages work with overlapping file formats or content types. Shared terms: actions, cli, developer, developer-tools, github.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
