Add `actionlint` with `pre-commit`: a static checker for GitHub Actions workflow files
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.4k
- 平均合并
- 6 天 19 小时
- 30 天内合并 PR
- 32
描述
[actionlint](https://github.com/rhysd/actionlint) is a static checker for GitHub Actions workflow files
Check out the actionlint playground:
https://rhysd.github.io/actionlint/
https://github.com/rhysd/actionlint/blob/v1.7.7/docs/usage.md#pre-commit
```
repos:
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
```
So the hook will need to be added to the pre-commit config and then all the `actionlint` lint errors will need fixing
The next document describes all checks done by actionlint with example inputs, outputs, and playground links:
https://github.com/rhysd/actionlint/blob/v1.7.7/docs/checks.md
贡献指南
调研方向
从 pre-commit 配置和 GitHub Actions workflow 文件开始。阅读 actionlint 的使用和检查文档,然后运行 checker 以识别现有的 lint 错误。完成的标准是 actionlint hook 已配置,并且所有报告的 workflow 错误都已修复。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github-actions
- 领域
- ci-cd, tooling
- Issue 类型
- 重构
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100