stoplightio / spectral-action

GitHub Action wrapper for Spectral - a JSON/YAML/OpenAPI/AsyncAPI/etc linter with custom rule support.
https://stoplight.io/open-source/spectral
Apache License 2.0
89 stars 46 forks source link

Linter gets stuck on invalid YAML files #645

Open ajrice6713 opened 2 years ago

ajrice6713 commented 2 years ago

Ran the linter action on an openapi spec with a the text of a git merge conflict committed and it was stuck continuously running, eventually hitting GitHub action rate limit

Context

Linter costing money to run private actions + producing false positives

Current Behavior

Linter fails on invalid files

Expected Behavior

Linter should fail fast on invalid files

Steps to Reproduce

  1. Use the attached global.yml spec file which has a Git unresolved merge conflict in it.
  2. Run a Spec Validate action on it
  3. Job summary shows it succeeded with green checkmark, but actual result is an error:
    /!\ issues detected
    Error: You have exceeded a secondary rate limit. Please wait a few minutes before you try again.

Environment

spec-and-logs.zip