Skip to content

Commit 4465b6b

Browse files
spectral-lint job fix
1 parent 60177a8 commit 4465b6b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/spectral-lint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- 'tools/spectral/**'
1515
- 'openapi/**.yaml'
1616
- 'package.json'
17+
permissions:
18+
issues: write
19+
contents: write
1720

1821
jobs:
1922
spectral-lint:
@@ -34,6 +37,9 @@ jobs:
3437
cache: 'npm'
3538
- name: Install npm dependencies
3639
run: npm install
40+
- name: Fetch OAS file from Dev Branch
41+
run: curl -O "https://raw.githubusercontent.com/mongodb/openapi/refs/heads/dev/openapi/.raw/v2.yaml"
42+
working-directory: ${{ github.workspace }}
3743
- name: Spectral action
3844
uses: stoplightio/spectral-action@2ad0b9302e32a77c1caccf474a9b2191a8060d83
3945
with:
@@ -43,5 +49,5 @@ jobs:
4349
- name: IPA validation action
4450
uses: stoplightio/spectral-action@2ad0b9302e32a77c1caccf474a9b2191a8060d83
4551
with:
46-
file_glob: openapi/.raw/v2.yaml
52+
file_glob: ${{ github.workspace }}//v2.yaml
4753
spectral_ruleset: tools/spectral/ipa/ipa-spectral.yaml

0 commit comments

Comments
 (0)