Skip to content

fix(ci): guard lpms-lts.yaml image.tag edits (Kargo-owned) - #6021

Merged
shivam-eGov merged 1 commit into
digit-ltsfrom
fix/guard-lpms-lts-image-tag
Dec 3, 2026
Merged

shivam-eGov merged 1 commit into
digit-ltsfrom
fix/guard-lpms-lts-image-tag

Conversation

@shivam-eGov

Copy link
Copy Markdown
Collaborator

Problem

The guard-digit-lts-image-tag check only blocks image.tag edits 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-certificate and pdf-v3 to dev-test-f99dc3b) passes the guard and shows as mergeable.

Fix

Add deploy-as-code/helm/environments/lpms-lts.yaml to the guard's FILES list. Every image.tag in 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.tag line in lpms-lts.yaml fails guard-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.yaml mixes 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.

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.
@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: e004591d-3667-407e-a004-b63d19d4c707

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

@shivam-eGov
shivam-eGov merged commit eacd27b into digit-lts Dec 3, 2026
3 checks passed
@shivam-eGov
shivam-eGov deleted the fix/guard-lpms-lts-image-tag branch December 3, 2026 11:35
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