From 3affed13c5c43fdf211f79d7fec6334b667e58a9 Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Sat, 20 Jul 2024 17:55:03 +0200 Subject: [PATCH] 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. --- .github/workflows/spectral.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spectral.yaml b/.github/workflows/spectral.yaml index f1d0eb4..bd34c62 100644 --- a/.github/workflows/spectral.yaml +++ b/.github/workflows/spectral.yaml @@ -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