Repository navigation
fix(ci): guard lpms-lts.yaml image.tag edits (Kargo-owned) - #6021
Merged
Merged
Conversation
The guard only blocked image.tag edits in crest-lts.yaml and digit-studio-lts.yaml, so a PR hand-editing Kargo-managed image tags in lpms-lts.yaml (e.g. license-certificate, pdf-v3) passed. All image.tag values in lpms-lts.yaml are written by the lpms-lts Kargo project, so add it to the guarded files list. Its image tags must change via a Kargo promotion or an authorised direct commit, not a PR.
shivam-eGov
requested review from
nikhilmulinti,
sathishp-eGov and
shashwat-egov
as code owners
December 3, 2026 11:28
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
guard-digit-lts-image-tagcheck only blocksimage.tagedits in crest-lts.yaml and digit-studio-lts.yaml. It never covered lpms-lts.yaml, so a PR hand-editing Kargo-managed image tags there (e.g. #6017:license-certificateandpdf-v3todev-test-f99dc3b) passes the guard and shows as mergeable.Fix
Add
deploy-as-code/helm/environments/lpms-lts.yamlto the guard'sFILESlist. Everyimage.tagin lpms-lts.yaml is written by the lpms-lts Kargo project (license-certificate, calculator, pdf-v3, telemetry-dashboard, ...), so it must change via a Kargo promotion or an authorised direct commit, not a PR. walt/metabase use chart-version/appVersion (no image.tag), so nothing legitimate is blocked.After this
A PR that edits an
image.tagline in lpms-lts.yaml failsguard-image-tags(same as crest/studio today). #6017 would be caught once re-run against the updated guard.Not covered (separate, needs a smarter guard)
test-lts.yamlmixes Kargo-owned core tags with hand-managed non-Kargo tags (the telemetry cleaner/forwarder deployed by the egov appset), so it needs a service-scoped guard rather than a blanket file block — flagged for follow-up.