# 使用 Homebrew, Nix 安装 legitify

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

## 安装

```sh
sudo av install brew:legitify
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install legitify
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#legitify
```

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

## 软件包事实

- **软件包键:** brew:legitify
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/legitify>
- **版本:** 1.0.11
- **来源摘要:** Tool to detect/remediate misconfig and security risks of GitHub/GitLab assets
- **主页:** <https://legitify.dev/>
- **仓库:** <https://github.com/Legit-Labs/legitify>
- **上游文档:** <https://legitify.dev/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/Legit-Labs/legitify/archive/refs/tags/v1.0.11.tar.gz>
- **最后更新:** 2026-07-26T13:41:01+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- legitify (cli)
- legitify (别名)

## 构建依赖

- go@1.24

## 安装行为

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

## 版本和新鲜度

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

Legitify is Legit Security's open-source CLI for finding and helping remediate security, compliance, and misconfiguration risks across GitHub and GitLab assets.

### 项目历史

Legit Security announced Legitify on 2022-10-05 as an open-source GitHub configuration scanner for security, DevOps, and developer teams. The repository and project site later described the scope as source-code-management posture across GitHub and GitLab assets, with built-in policies and remediation-oriented output.

### 采用历史

The project was packaged as a standalone CLI, GitHub Action, Homebrew formula, Nix package, and GitHub CLI extension. That mix made it fit both one-off audits from a workstation and scheduled checks in CI for organizations managing many repositories, members, teams, runners, branch protections, and tokens.

### 使用方式

Typical usage is to authenticate to GitHub or GitLab, run `legitify analyze`, and review policy findings against repositories, organizations, runners, webhooks, actions, branch protection, and other SCM resources. Its Homebrew packaging matters because security teams can hand developers a familiar install path instead of a vendor-only SaaS workflow.

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

Legitify is a package-nerd example of application-security posture management ideas escaping into a plain CLI. It packages policy checks and remediation hints as a tool that can live in local shells, CI jobs, and GitHub Actions, adjacent to linters and secret scanners.

### 时间线

- 2022-07-26: The GitHub issue tracker showed early public project activity.
- 2022-10-05: Legit Security published the introductory Legitify announcement.
- 2023-01-19: Public issues tracked expansion into third-party application policies.
- 2023-02-06: Public issues tracked auto-remediation work.

### Related projects

- Related projects include the `gh-legitify` GitHub CLI extension, the Legitify GitHub Action, OpenSSF Scorecard, GitHub Advanced Security configuration checks, GitLab security scanners, and policy-as-code tools used for SCM governance.

### 来源

- <https://github.com/Legit-Labs/gh-legitify>
- <https://github.com/Legit-Labs/legitify>
- <https://github.com/Legit-Labs/legitify/issues>
- <https://github.com/marketplace/actions/legitify-analyze>
- <https://legitify.dev/>
- <https://www.legitsecurity.com/blog/introducing-legitify>
- <https://www.legitsecurity.com/legitify>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

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

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

- Nix - legitify: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/legitify/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.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [lacework-cli](https://pkg.so/zh-hans/brew/lacework-cli/) - Shares pkgdb curated category or tags: cli, cloud-security, security.
- [cfripper](https://pkg.so/zh-hans/brew/cfripper/) - Shares pkgdb curated category or tags: cli, cloud-security, security.
- [s3scanner](https://pkg.so/zh-hans/brew/s3scanner/) - Shares pkgdb curated category or tags: cli, cloud-security, security.
- [parliament](https://pkg.so/zh-hans/brew/parliament/) - Shares pkgdb curated category or tags: cli, cloud-security, security.
- [prowler](https://pkg.so/zh-hans/brew/prowler/) - Shares pkgdb curated category or tags: cli, cloud-security, security.
- [kics](https://pkg.so/zh-hans/brew/kics/) - Shares pkgdb curated category or tags: cli, misconfiguration, security.
- [scoutsuite](https://pkg.so/zh-hans/brew/scoutsuite/) - Shares pkgdb curated category or tags: cli, cloud-security, security.
- [cloudfox](https://pkg.so/zh-hans/brew/cloudfox/) - Shares pkgdb curated category or tags: cli, cloud-security, security.

## Combined YAML source

View the package source record on GitHub. [combined/legitify.yml](https://github.com/mxcl/pkgdb/blob/main/combined/legitify.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
