Skip to content

Fix build-helper tag lookup and resolve v10.* - #67

Open
manz wants to merge 1 commit into
masterfrom
fix-build-helper-tag-lookup
Open

manz wants to merge 1 commit into
masterfrom
fix-build-helper-tag-lookup

Conversation

@manz

@manz manz commented Dec 1, 2026

Copy link
Copy Markdown
Member

Issue

Since d19cc11 (2026-02-03) every caller runs build-helper main instead of the latest tag. The lookup now runs after the caller's actions/checkout, which persists the repo's GITHUB_TOKEN as an http.extraheader in the workspace. That header overrides HELPER_TOKEN in the URL, the repo-scoped token cannot see build-helper, and git ls-remote fails with "Repository not found". The step did not stop on the error, HELPER_VERSION stayed empty, and the build-helper checkout fell back to the default branch (seen in leela, maps and authentication deploy and smoke test logs).

Describe your changes

  • Run the tag lookup from $RUNNER_TEMP, outside the caller workspace, so HELPER_TOKEN is the credential git uses.
  • set -euo pipefail, and fail the step when no tag matches instead of silently checking out main.
  • --refs drops peeled ^{} entries from the tag list.
  • Resolve v10.* instead of v8.*. Callers already run that code: build-helper main and v10.0.0 are the same commit (0926f7f), so this changes nothing today. From now on, merges to build-helper reach callers only once tagged.

How to test

  • On a caller PR, the "Getting Build-Helper Tag" step resolves refs/tags/v10.0.0 and the build-helper checkout logs commit 0926f7f.
  • build_helper_branch still overrides the lookup (maps pins v10.0.0 through it).
  • With a broken HELPER_TOKEN the step now fails instead of checking out main.

Checklist:

  • My code follows the style guidelines for this repo
  • My code passes the SonarCloud check and does not add new code smells
  • I have performed a self-review of my code
  • My changes generate no new warnings/errors
  • I have added tests that prove my fix is effective or that my feature works
  • I don't require ops changes for this PR to go to prod
  • This change does not include a migration

Documentation

N/A

Libs/SDKs

N/A

The caller checkout's persisted GITHUB_TOKEN hid build-helper from ls-remote since d19cc11, so every caller ran main.
@manz
manz requested a review from a team as a code owner December 1, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants