Skip to content

Tighten release tag filter in galexie workflow - #75

Merged
urvisavla merged 1 commit into
stellar:mainfrom
urvisavla:cicd
May 29, 2026
Merged

Tighten release tag filter in galexie workflow#75
urvisavla merged 1 commit into
stellar:mainfrom
urvisavla:cicd

Conversation

@urvisavla

Copy link
Copy Markdown
Contributor

Summary

  • Replace the loose galexie-v* tag glob in .github/workflows/galexie.yml with two explicit patterns matching galexie-vX.Y.Z and galexie-vX.Y.Z-rcN.

Why

The previous glob accepted arbitrary suffixes, including ones containing shell metacharacters. RELEASE_VERSION flows from the tag (GITHUB_REF_NAME) into $GITHUB_ENV and then through make docker-push-release, where it lands unquoted in docker tag / docker push shell commands. Constraining the filter at the trigger layer prevents non-conforming tags from ever starting a release build.

Test plan

  • Regex sanity-check on the equivalent pattern accepts galexie-v1.2.3, galexie-v10.20.30, galexie-v1.2.3-rc1, galexie-v1.2.3-rc99; rejects galexie-v1.2, galexie-vX.Y.Z, galexie-v1.2.3-beta, galexie-v1.2.3-rc, galexie-v1.2.3-rcX, galexie-v1.2.3.4, galexie-v\$(curl evil), galexie-v1.2.3 ; rm -rf /.
  • act push --dryrun -W .github/workflows/galexie.yml parses the workflow cleanly with the new filter syntax.
  • End-to-end confirmation: push a throwaway tag in a sandbox to verify GitHub honors the new filter (recommend before relying on it).

The previous `galexie-v*` glob matched any string starting with the
prefix, including tags containing shell metacharacters that could be
re-evaluated when downstream tooling expands `RELEASE_VERSION` into a
shell command. Constrain the filter to well-formed semver tags
(`galexie-vX.Y.Z` and `galexie-vX.Y.Z-rcN`) so non-conforming tags
never trigger a release build.
Copilot AI review requested due to automatic review settings May 28, 2026 23:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Tightens the tag trigger filter for the Galexie release workflow so only well-formed semver tags (with optional -rcN suffix) can start a release build, preventing arbitrary suffixes (including shell metacharacters) from flowing through RELEASE_VERSION into unquoted docker tag/docker push commands.

Changes:

  • Replace the broad galexie-v* tag glob with two explicit patterns for galexie-vX.Y.Z and galexie-vX.Y.Z-rcN.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@urvisavla
urvisavla requested a review from travertischio May 28, 2026 23:17
@urvisavla
urvisavla merged commit f4bec80 into stellar:main May 29, 2026
14 checks passed
@urvisavla
urvisavla deleted the cicd branch May 29, 2026 00:00
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.

4 participants