Skip to content

fix(kargo/lpms-lts): restrict allowTags to master-*, dev-*, semver - #6023

Open
shivam-eGov wants to merge 1 commit into
digit-ltsfrom
fix/lpms-kargo-allowtags
Open

shivam-eGov wants to merge 1 commit into
digit-ltsfrom
fix/lpms-kargo-allowtags

Conversation

@shivam-eGov

Copy link
Copy Markdown
Collaborator

What

Narrows the lpms-lts Kargo project's allowTags so only master-<sha>, dev-* and semver image tags are discoverable/promotable.

- '^.+-[0-9a-f]{7,}(-[0-9]+)?$'                        # any <branch>-<sha>
+ '^(master-[0-9a-f]{7,}(-[0-9]+)?|dev-.+|v?[0-9]+\.[0-9]+\.[0-9]+([-.+_][0-9A-Za-z.+_-]*)?)$'

Why

The old pattern admitted any branch build (e.g. feat-xyz-<sha>). Restricting to master/dev/semver keeps discovery to intended builds.

Verified

Current tags still match (license-certificate dev-test-*, telemetry-dashboard 0.2.0-*, pdf-v3 dev-*, master-<sha>, semver); feat-*, latest, snapshot excluded.

Related

Pairs with the lpms-lts Kargo git credentials fix (applied to the cluster so promotions can write back), which removes the need for the manual env-file image edits the new guard now blocks.

Was '^.+-[0-9a-f]{7,}(-[0-9]+)?$' which admitted any <branch>-<sha> build. Narrow to
master-<sha>, dev-* and semver release tags so only those are discoverable/promotable.
Verified current tags still match (license-certificate dev-test-*, telemetry-dashboard
0.2.0-*, pdf-v3 dev-*); feature-branch/latest/snapshot are excluded.
@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 933e9e1d-f986-4e16-bf03-46897647bd31

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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