Skip to content

Commit 1a50632

Browse files
mliptak0claude
andcommitted
HYPERFLEET-1024 - chore: switch spectral lint to CLI with github-actions format
Replace stoplightio/spectral-action (Docker, hides output behind GitHub API annotations) with a direct npx spectral lint invocation using --format github-actions. This format emits ::error and ::warning workflow commands to stdout, which GitHub Actions renders as inline PR annotations natively without requiring checks:write or any API call. Output is fully visible in step logs. Remove checks:write permission as it is no longer needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6cb4bd2 commit 1a50632

3 files changed

Lines changed: 1573 additions & 120 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: read
14-
checks: write
1514

1615
steps:
1716
- name: Checkout code
@@ -44,9 +43,8 @@ jobs:
4443
fi
4544
4645
- name: Lint OpenAPI schemas
47-
uses: stoplightio/spectral-action@v0.8.13
48-
with:
49-
file_glob: schemas/**/openapi.yaml
46+
run: |
47+
npx spectral lint schemas/core/openapi.yaml schemas/gcp/openapi.yaml --format github-actions
5048
5149
- name: Check version bump
5250
env:

0 commit comments

Comments
 (0)