From 2f645ca5d783c763ef0b07e0f60248c06c6b7168 Mon Sep 17 00:00:00 2001 From: Samantha Coyle Date: Fri, 13 Mar 2026 08:50:36 -0500 Subject: [PATCH 1/4] fix(build): handle rate limiting causing failures in build Signed-off-by: Samantha Coyle --- .github/workflows/validate_examples.yaml | 25 ++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/validate_examples.yaml b/.github/workflows/validate_examples.yaml index 46b1c7af..bb1702ed 100644 --- a/.github/workflows/validate_examples.yaml +++ b/.github/workflows/validate_examples.yaml @@ -66,13 +66,27 @@ jobs: ref: ${{ env.CHECKOUT_REF }} - uses: azure/setup-helm@v4 - name: Determine latest Dapr Runtime version (including prerelease) + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - RUNTIME_VERSION=$(curl -s "https://api.github.com/repos/dapr/dapr/releases" | sort -r | grep '"tag_name"' | head -n 1 | cut -d ':' -f2 | tr -d '",v ') + RUNTIME_VERSION=$(curl -sf -H "Authorization: Bearer $GITHUB_TOKEN" \ + "https://api.github.com/repos/dapr/dapr/releases?per_page=10" | \ + jq -r 'sort_by(.created_at) | reverse | .[0].tag_name | ltrimstr("v")') + if [ -z "$RUNTIME_VERSION" ] || [ "$RUNTIME_VERSION" = "null" ]; then + echo "Failed to resolve Dapr Runtime version" && exit 1 + fi echo "DAPR_RUNTIME_VER=$RUNTIME_VERSION" >> $GITHUB_ENV echo "Found $RUNTIME_VERSION" - - name: Determine latest Dapr Cli version (including prerelease) + - name: Determine latest Dapr CLI version (including prerelease) + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - CLI_VERSION=$(curl -s "https://api.github.com/repos/dapr/cli/releases" | sort -r | grep '"tag_name"' | head -n 1 | cut -d ':' -f2 | tr -d '",v ') + CLI_VERSION=$(curl -sf -H "Authorization: Bearer $GITHUB_TOKEN" \ + "https://api.github.com/repos/dapr/cli/releases?per_page=10" | \ + jq -r 'sort_by(.created_at) | reverse | .[0].tag_name | ltrimstr("v")') + if [ -z "$CLI_VERSION" ] || [ "$CLI_VERSION" = "null" ]; then + echo "Failed to resolve Dapr CLI version" && exit 1 + fi echo "DAPR_CLI_VER=$CLI_VERSION" >> $GITHUB_ENV echo "Found $CLI_VERSION" - name: Set up Python ${{ matrix.python_ver }} @@ -84,7 +98,10 @@ jobs: python -m pip install --upgrade pip pip install setuptools wheel twine tox - name: Set up Dapr CLI - run: wget -q ${{ env.DAPR_INSTALL_URL }} -O - | /bin/bash -s ${{ env.DAPR_CLI_VER }} + run: | + wget -q "https://github.com/dapr/cli/releases/download/v${{ env.DAPR_CLI_VER }}/dapr_linux_amd64.tar.gz" -O /tmp/dapr.tar.gz + sudo tar xzf /tmp/dapr.tar.gz -C /usr/local/bin dapr + dapr --version - name: Set up Go ${{ env.GOVER }} if: env.DAPR_REF != '' || env.DAPR_CLI_REF != '' uses: actions/setup-go@v5 From 87b9f9a05bbeb9d333a8d425f6c84d76614b2a80 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 13 Mar 2026 09:07:37 -0500 Subject: [PATCH 2/4] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sam --- .github/workflows/validate_examples.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate_examples.yaml b/.github/workflows/validate_examples.yaml index bb1702ed..8a2b215b 100644 --- a/.github/workflows/validate_examples.yaml +++ b/.github/workflows/validate_examples.yaml @@ -69,7 +69,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - RUNTIME_VERSION=$(curl -sf -H "Authorization: Bearer $GITHUB_TOKEN" \ + RUNTIME_VERSION=$(curl -fsS -H "Authorization: Bearer $GITHUB_TOKEN" \ "https://api.github.com/repos/dapr/dapr/releases?per_page=10" | \ jq -r 'sort_by(.created_at) | reverse | .[0].tag_name | ltrimstr("v")') if [ -z "$RUNTIME_VERSION" ] || [ "$RUNTIME_VERSION" = "null" ]; then @@ -81,7 +81,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - CLI_VERSION=$(curl -sf -H "Authorization: Bearer $GITHUB_TOKEN" \ + CLI_VERSION=$(curl -fsS -H "Authorization: Bearer $GITHUB_TOKEN" \ "https://api.github.com/repos/dapr/cli/releases?per_page=10" | \ jq -r 'sort_by(.created_at) | reverse | .[0].tag_name | ltrimstr("v")') if [ -z "$CLI_VERSION" ] || [ "$CLI_VERSION" = "null" ]; then From d2927b4a2b43f766a74837766b700b3a7f5a048f Mon Sep 17 00:00:00 2001 From: Samantha Coyle Date: Fri, 13 Mar 2026 09:08:58 -0500 Subject: [PATCH 3/4] fix: address copilot feedback Signed-off-by: Samantha Coyle --- .github/workflows/validate_examples.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate_examples.yaml b/.github/workflows/validate_examples.yaml index bb1702ed..8d4567cc 100644 --- a/.github/workflows/validate_examples.yaml +++ b/.github/workflows/validate_examples.yaml @@ -99,7 +99,7 @@ jobs: pip install setuptools wheel twine tox - name: Set up Dapr CLI run: | - wget -q "https://github.com/dapr/cli/releases/download/v${{ env.DAPR_CLI_VER }}/dapr_linux_amd64.tar.gz" -O /tmp/dapr.tar.gz + wget -q "https://github.com/dapr/cli/releases/download/v${{ env.DAPR_CLI_VER }}/dapr_${{ env.GOARCH }}.tar.gz" -O /tmp/dapr.tar.gz sudo tar xzf /tmp/dapr.tar.gz -C /usr/local/bin dapr dapr --version - name: Set up Go ${{ env.GOVER }} From 725723d0b81ae11bc4d396cb31038dd29beec2b3 Mon Sep 17 00:00:00 2001 From: Samantha Coyle Date: Fri, 13 Mar 2026 09:12:43 -0500 Subject: [PATCH 4/4] fix:update for build to curl properly Signed-off-by: Samantha Coyle --- .github/workflows/validate_examples.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate_examples.yaml b/.github/workflows/validate_examples.yaml index 6b773bc8..f99010d2 100644 --- a/.github/workflows/validate_examples.yaml +++ b/.github/workflows/validate_examples.yaml @@ -99,7 +99,7 @@ jobs: pip install setuptools wheel twine tox - name: Set up Dapr CLI run: | - wget -q "https://github.com/dapr/cli/releases/download/v${{ env.DAPR_CLI_VER }}/dapr_${{ env.GOARCH }}.tar.gz" -O /tmp/dapr.tar.gz + wget -q "https://github.com/dapr/cli/releases/download/v${{ env.DAPR_CLI_VER }}/dapr_${{ env.GOOS }}_${{ env.GOARCH }}.tar.gz" -O /tmp/dapr.tar.gz sudo tar xzf /tmp/dapr.tar.gz -C /usr/local/bin dapr dapr --version - name: Set up Go ${{ env.GOVER }}