From 06240677b5447db45d8dcdf2afc3943b87ec8a8f Mon Sep 17 00:00:00 2001 From: Entlein Date: Mon, 27 Apr 2026 14:27:36 +0200 Subject: [PATCH] ci(benchmark): query upstream releases for the baseline image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fork has no GitHub releases, so 'gh api repos/k8sstormcenter/node-agent /releases/latest' returns 404 and the workflow aborts at 'Resolve before image'. The baseline image referenced in the next line is already the upstream registry (quay.io/kubescape/node-agent), so query upstream's releases endpoint to get a real tag — this also gives a meaningful 'us vs latest upstream release' comparison. --- .github/workflows/benchmark.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index 17e85b1df..12057cd17 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -57,10 +57,13 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | + # Baseline = latest UPSTREAM release. Our fork doesn't tag releases, + # so querying ${{ github.repository }} gives 404. Comparing against + # upstream is also the meaningful baseline for performance work. if [[ -n "${{ inputs.before_image }}" ]]; then echo "BEFORE_IMAGE=${{ inputs.before_image }}" >> "$GITHUB_OUTPUT" else - LATEST_TAG=$(gh api repos/${{ github.repository }}/releases/latest --jq '.tag_name') + LATEST_TAG=$(gh api repos/kubescape/node-agent/releases/latest --jq '.tag_name') echo "BEFORE_IMAGE=quay.io/kubescape/node-agent:${LATEST_TAG}" >> "$GITHUB_OUTPUT" fi