From a33bc3c832a6e37694237be6b9c60baf4059b50e Mon Sep 17 00:00:00 2001 From: Vui Lam Date: Wed, 15 Nov 2023 09:57:46 -0800 Subject: [PATCH] Add Spectral scan to github workflow Signed-off-by: Vui Lam --- .github/workflows/build.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bbe8a52ad..38d9043a9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,6 +27,14 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v1 + - name: Install and run Spectral CI + env: + SPECTRAL_DSN: ${{ secrets.SPECTRAL_DSN }} + uses: spectralops/spectral-github-action@v3 + with: + spectral-dsn: ${{ env.SPECTRAL_DSN }} + spectral-args: scan --ok --include-tags base,audit + - name: Run markdown link check uses: gaurav-nelson/github-action-markdown-link-check@v1 with: