mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-19 05:27:24 +08:00
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled
Build package / Build Test (3.10) (push) Has been cancelled
Build package / Build Test (3.11) (push) Has been cancelled
Build package / Build Test (3.12) (push) Has been cancelled
Build package / Build Test (3.13) (push) Has been cancelled
Build package / Build Test (3.14) (push) Has been cancelled
Per CodeRabbit review on #13410. The job only checks out the repo and runs Spectral, so contents:read is sufficient and avoids inheriting any permissive repo/org default token scope.
32 lines
639 B
YAML
32 lines
639 B
YAML
name: OpenAPI Lint
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'openapi.yaml'
|
|
- '.spectral.yaml'
|
|
- '.github/workflows/openapi-lint.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
spectral:
|
|
name: Run Spectral
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install Spectral
|
|
run: npm install -g @stoplight/spectral-cli@6
|
|
|
|
- name: Lint openapi.yaml
|
|
run: spectral lint openapi.yaml --ruleset .spectral.yaml --fail-severity=error
|