Skip to content

Commit 0d4dbf1

Browse files
committed
Linting with locally installed spectral-cli
1 parent 25f9efa commit 0d4dbf1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: OpenAPI Lint
1414
runs-on: ubuntu-24.04
1515
permissions:
16-
contents: write
16+
contents: read
1717
env:
1818
GHA_API_LINT_FILE_GLOB: ${{ inputs.file_glob }}
1919
steps:
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Run Spectral Linting
2929
id: linting
30-
run: spectral lint ${{ env.GHA_API_LINT_FILE_GLOB }} -r .spectral.yml -o lint-result.json -f json --quiet || true
30+
run: spectral lint ${{ env.GHA_API_LINT_FILE_GLOB }} -o lint-result.json -f json --quiet || true
3131

3232
- name: Count Errors and Warnings
3333
id: count

.github/workflows/trigger-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push]
55
jobs:
66
spectral-lint:
77
permissions:
8-
contents: write
8+
contents: read
99
uses: ./.github/workflows/lint.yml
1010
with:
1111
file_glob: test-api.yaml

0 commit comments

Comments
 (0)