Fix required-validations Spectral crash in release workflow#1368
Draft
yelizhenden-mdb with Copilot wants to merge 2 commits into
Draft
Fix required-validations Spectral crash in release workflow#1368yelizhenden-mdb with Copilot wants to merge 2 commits into
yelizhenden-mdb with Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job for Release OpenAPI Spec
Fix required-validations Spectral crash in release workflow
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Required validations in the DEV release flow were failing in
required-validationswithCannot read properties of null (reading 'enum')from Spectral.This change removes version drift in that job by using the repo-installed Spectral CLI instead of the workflow input version.
Jira ticket: CLOUDP-#
required-spec-validations.ymlinvoked@stoplight/spectral-cli@"${SPECTRAL_VERSION}"(workflow input), which resolved to a crashing version in this run.npx spectral lint ...) so it stays aligned withpackage.json/lockfile.Checklist
Changes to Spectral
Further comments
This intentionally keeps behavior unchanged except CLI version resolution in required validations, to eliminate the runtime crash path without expanding the blast radius.