From 61d6ec7aedf4bddec43323a5d54ffabb01c78922 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Fri, 13 Feb 2026 19:02:41 -0800 Subject: [PATCH] fix: use Go module proxy instead of GitHub API to resolve latest client version --- .github/actions/client/resolve-latest/action.yml | 11 ++++++++++- .github/workflows/buildpack-integration-test.yml | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/actions/client/resolve-latest/action.yml b/.github/actions/client/resolve-latest/action.yml index 2554d45..029f431 100644 --- a/.github/actions/client/resolve-latest/action.yml +++ b/.github/actions/client/resolve-latest/action.yml @@ -7,8 +7,17 @@ outputs: runs: using: "composite" steps: + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 1.x - name: Resolve latest conformance test client version id: resolve-latest-client run: | - echo "::set-output name=version::$(curl --silent "https://api.github.com/repos/GoogleCloudPlatform/functions-framework-conformance/releases/latest" | jq -r '.tag_name')" + VERSION=$(go list -m -json github.com/GoogleCloudPlatform/functions-framework-conformance@latest | jq -r '.Version') + if [ "$VERSION" = "null" ] || [ -z "$VERSION" ]; then + echo "Failed to resolve latest version" + exit 1 + fi + echo "version=$VERSION" >> $GITHUB_OUTPUT shell: bash diff --git a/.github/workflows/buildpack-integration-test.yml b/.github/workflows/buildpack-integration-test.yml index 650b038..a1472be 100644 --- a/.github/workflows/buildpack-integration-test.yml +++ b/.github/workflows/buildpack-integration-test.yml @@ -108,7 +108,7 @@ jobs: run: echo CLIENT_VERSION=${{ steps.conformance-client-latest.outputs.version }} >> $GITHUB_ENV - name: Set cache key for client version id: set-cached-client-version - run: echo "::set-output name=key::conformance-client-${{ env.CLIENT_VERSION }}" + run: echo "key=conformance-client-${{ env.CLIENT_VERSION }}" >> $GITHUB_OUTPUT # INSTALL CONFORMANCE CLIENT - name: Check for cached conformance test client