fabasoad/setup-graudit-action
GitHub: fabasoad/setup-graudit-action
该 GitHub Action 用于在 CI/CD 工作流中自动安装 graudit 源代码安全审计工具。
Stars: 1 | Forks: 0
# 设置 graudit action
[](https://stand-with-ukraine.pp.ua)




此 action 会安装 [graudit](https://github.com/wireghoul/graudit) CLI 工具。
## 支持的操作系统
| 操作系统 | |
|---------|--------------------|
| Windows | :white_check_mark: |
| Linux | :white_check_mark: |
| macOS | :white_check_mark: |
## 前置条件
为了让此 GitHub Action 正常工作,必须安装以下工具:
[curl](https://curl.se)。
## 输入
```
- uses: fabasoad/setup-graudit-action@v0
with:
# (Optional) graudit version. Defaults to the latest version.
version: "3.7"
# (Optional) If "false" skips installation if graudit is already installed.
# If "true" installs graudit in any case. Defaults to "false".
force: "false"
# (Optional) GitHub token that is used to send requests to GitHub API such
# as getting latest release. Defaults to the token provided by GitHub Actions
# environment.
github-token: "${{ github.token }}"
```
## 输出
| 名称 | 描述 | 示例 |
|----------|------------------------------------|---------|
| installed | graudit 是否已成功安装 | `true` |
## 使用示例
### 工作流配置
```
name: Test
on: push
jobs:
setup:
name: graudit
runs-on: ubuntu-latest
steps:
- uses: fabasoad/setup-graudit-action@v0
with:
version: 3.7
- name: Print version
run: graudit -v
```
### 结果
```
Run graudit -v
graudit version: 3.7
```
## 贡献

标签:Cutter, GitHub Action, SOC Prime, 开发工具, 环境配置, 错误基检测, 静态代码分析