Skip to content

Commit

Permalink
chore(ci): fix the Spectral rules URL (#251)
Browse files Browse the repository at this point in the history
The rules where moved to another repository
(https://github.com/italia/api-oas-checker-rules), get them
from there.
  • Loading branch information
bfabio authored Jul 20, 2024
1 parent f8bda35 commit 3affed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/spectral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: curl https://italia.github.io/api-oas-checker/spectral-full.yml > .spectral.yml
- run: curl --fail -L https://github.com/italia/api-oas-checker-rules/releases/download/1.1/spectral-full.yml > .spectral.yml

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

- uses: stoplightio/spectral-action@v0.8.11

0 comments on commit 3affed1

Please sign in to comment.