Skip to content

Commit 3affed1

Browse files
authored
chore(ci): fix the Spectral rules URL (#251)
The rules where moved to another repository (https://github.com/italia/api-oas-checker-rules), get them from there.
1 parent f8bda35 commit 3affed1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/spectral.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- run: curl https://italia.github.io/api-oas-checker/spectral-full.yml > .spectral.yml
15+
- run: curl --fail -L https://github.com/italia/api-oas-checker-rules/releases/download/1.1/spectral-full.yml > .spectral.yml
1616

1717
# Get additional module required by spectral-full
1818
- run: mkdir functions
19-
- run: curl https://raw.githubusercontent.com/italia/api-oas-checker/f6f4e6e360b2ce9816dcca29396571dda1c6027d/security/functions/checkSecurity.js > functions/checkSecurity.js
19+
- run: curl --fail -L https://raw.githubusercontent.com/italia/api-oas-checker/f6f4e6e360b2ce9816dcca29396571dda1c6027d/security/functions/checkSecurity.js > functions/checkSecurity.js
2020

2121
- uses: stoplightio/[email protected]

0 commit comments

Comments
 (0)