diff --git a/.github/workflows/required-spec-validations.yml b/.github/workflows/required-spec-validations.yml index 5a97d2be49..a3108c44a0 100644 --- a/.github/workflows/required-spec-validations.yml +++ b/.github/workflows/required-spec-validations.yml @@ -58,6 +58,10 @@ jobs: id: go-sdk-validation run: | cp -rf "openapi-foas.yaml" "atlas-sdk-go/openapi/atlas-sdk.yaml" + # Point the SDK generation pipeline at the freshly built FOAS. + # Without this, generate.sh falls back to its default and + # validates the stale atlas-api.yaml committed in the SDK repo. + export OPENAPI_FILE_NAME="atlas-sdk.yaml" pushd atlas-sdk-go make -e openapi-pipeline popd