From e1765fa90fffbd8aa3e560cad3805357d2bfc353 Mon Sep 17 00:00:00 2001 From: Ted Slusser Date: Sat, 7 Mar 2026 15:09:55 -0600 Subject: [PATCH] fix: use scoped package name for spectral npx invocation `npx spectral` resolves to the wrong npm package (spectral@0.0.0) instead of @stoplight/spectral-cli, causing idd-check to fail for downstream consumers. Co-Authored-By: Claude Opus 4.6 --- .github/actions/idd-check/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/idd-check/action.yml b/.github/actions/idd-check/action.yml index 071f251..3f6c781 100644 --- a/.github/actions/idd-check/action.yml +++ b/.github/actions/idd-check/action.yml @@ -112,7 +112,7 @@ runs: OPENAPI_RAN=false if [ -f "${{ inputs.spectral-ruleset }}" ] && [ -f "$SPECS_DIR/contracts/openapi/api.yaml" ]; then OPENAPI_RAN=true - npx spectral lint "$SPECS_DIR/contracts/openapi/api.yaml" --ruleset "${{ inputs.spectral-ruleset }}" > /tmp/idd-results/openapi-lint.txt 2>&1 + npx @stoplight/spectral-cli lint "$SPECS_DIR/contracts/openapi/api.yaml" --ruleset "${{ inputs.spectral-ruleset }}" > /tmp/idd-results/openapi-lint.txt 2>&1 OPENAPI_EXIT=$? fi echo "openapi_exit=$OPENAPI_EXIT" >> "$GITHUB_OUTPUT"