Skip to content

ci: guard release-lane workflows against tags on unexpected branches#5360

Draft
shivanshuraj1333 wants to merge 1 commit into
mainfrom
ci/tag-branch-guardrail
Draft

ci: guard release-lane workflows against tags on unexpected branches#5360
shivanshuraj1333 wants to merge 1 commit into
mainfrom
ci/tag-branch-guardrail

Conversation

@shivanshuraj1333

Copy link
Copy Markdown
Contributor

Why

publish-modules.yml triggers on push: tags: v* with no branch restriction — GitHub Actions can't scope a tag-push trigger to a branch. Today, a v*-shaped tag pushed to any branch (a feature branch, a fork, anywhere) fires the full production release pipeline: real image pushes to GCR/DockerHub/GHCR, real Slack alerts, and for -rcN tags, a real Homebrew tap update.

What

Adds a check at the top of the decide job: verifies the pushed (or dispatched) tag is reachable from main or releases/** before anything downstream runs. Fails fast with a clear error otherwise.

Companion PR

Same guardrail mirrored in odigos-enterprise's release-images.yml (separate PR).

Part of the CI/CD pipeline hardening work discussed in CORE-1221.

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.

1 participant