From 7393101f65a438ef9b4290e8aacb0fd358ad5a50 Mon Sep 17 00:00:00 2001 From: VascoSch92 Date: Mon, 15 Jun 2026 16:16:42 +0200 Subject: [PATCH] ci: pin oasdiff version to avoid GitHub API rate-limit flake The "Install oasdiff" step runs upstream install.sh, which queries the GitHub API to resolve the latest oasdiff release. Unauthenticated API requests are capped at 60/hr per IP, so on shared GitHub-hosted runners the lookup intermittently fails with "Failed to get oasdiff version. This could be due to GitHub API rate limiting or network issues", failing the whole check before the breakage step runs. Pin the version so install.sh skips the API lookup (per the script's own error-message guidance) and downloads the release asset directly. This also makes the check deterministic and bumpable via a PR. --- .github/workflows/agent-server-rest-api-breakage.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/agent-server-rest-api-breakage.yml b/.github/workflows/agent-server-rest-api-breakage.yml index 79da1284e5..80c33663d1 100644 --- a/.github/workflows/agent-server-rest-api-breakage.yml +++ b/.github/workflows/agent-server-rest-api-breakage.yml @@ -29,8 +29,11 @@ jobs: run: uv sync --frozen --group dev - name: Install oasdiff + # Pin the version so install.sh skips its GitHub API "latest release" + # lookup, which intermittently hits the 60/hr unauthenticated rate + # limit on shared runners and fails the whole check. Bump as needed. run: | - curl -L https://raw.githubusercontent.com/oasdiff/oasdiff/main/install.sh | sh -s -- -b /usr/local/bin + curl -fsSL https://raw.githubusercontent.com/oasdiff/oasdiff/main/install.sh | version=1.19.1 sh -s -- -b /usr/local/bin oasdiff --version - name: Run agent server REST API breakage check