From fa6673eab5f96c2ea1686e020316e7606711b7be Mon Sep 17 00:00:00 2001 From: yakimoto Date: Tue, 11 Aug 2026 23:01:48 +0000 Subject: [PATCH] ci(spec): fix oasdiff smoke test to use --version flag Co-authored-by: Codesmith --- .github/workflows/foundation-gate.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/foundation-gate.yml b/.github/workflows/foundation-gate.yml index 79b6b7f..b63f625 100644 --- a/.github/workflows/foundation-gate.yml +++ b/.github/workflows/foundation-gate.yml @@ -114,7 +114,8 @@ jobs: "https://github.com/oasdiff/oasdiff/releases/download/v1.28.0/checksums.txt" (cd /tmp/oasdiff-install && grep "oasdiff_1.28.0_linux_amd64.tar.gz" checksums.txt | sha256sum -c -) tar -xzf /tmp/oasdiff-install/oasdiff_1.28.0_linux_amd64.tar.gz -C /usr/local/bin - oasdiff version + # v1.28.0 has no `version` subcommand (exits 100); the flag form is correct. + oasdiff --version - name: Fail on unacknowledged breaking changes # oasdiff breaking --fail-on ERR exits 1 when the PR's openapi.yaml has breaking # changes vs the base branch (removed/renamed paths, removed required params, etc).