Add `actionlint` with `pre-commit`: a static checker for GitHub Actions workflow files
- Vorherrschende Sprache
- Java
- Sterne
- 3.1k
- Forks
- 1.4k
- Ø Merge
- 6 T. 19 Std.
- Gemergte PRs (30 T.)
- 32
Beschreibung
[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
Beitragsleitfaden
Rechercherichtung
Beginne mit der pre-commit-Konfiguration und den GitHub Actions-Workflow-Dateien. Lies die Dokumentation zur Verwendung und zu den Prüfungen von actionlint und führe anschließend den Checker aus, um die vorhandenen Lint-Fehler zu identifizieren. Die Aufgabe ist abgeschlossen, wenn der actionlint-Hook konfiguriert und alle gemeldeten Workflow-Fehler behoben sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- github-actions
- Bereich
- ci-cd, tooling
- Issue-Typ
- Refactoring
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100