1.1 KiB
1.1 KiB
vacuum-lint
Action for validating and linting OpenAPI specifications using Vacuum.
Inputs
| Input | Required | Default | Description |
|---|---|---|---|
spec-dir |
No | spec |
Directory containing the OpenAPI spec |
spec-filename |
No | openapi.json |
Filename of the OpenAPI spec |
rules-filename |
No | vacuum.rules.yaml |
Filename of the lint rules config file |
ignore-filename |
No | vacuum.ignore.yaml |
Filename of the lint ignore file |
min-score |
No | 70 |
Minimum linting score for the check to pass |
Usage
- uses: https://schmalz-git.git.onstackit.cloud/schmalz/shared-actions/vacuum-lint@vacuum-lint-v1
Notes
- If
rules-filenameis found insidespec-dir, it is passed to Vacuum via-rto apply custom rulesets; otherwise Vacuum uses its default rules. - If
ignore-filenameis found insidespec-dir, it is passed to Vacuum via--ignore-fileto suppress known violations. - The action fails when the computed linting score falls below
min-score.