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