From 782ee760ccf0cc014012ff33778a862a93707c5c Mon Sep 17 00:00:00 2001 From: nmfretz Date: Fri, 19 Jun 2026 12:28:15 +1000 Subject: [PATCH] Allow digest-pinned latest image tags --- .tools/lint-apps.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.tools/lint-apps.mjs b/.tools/lint-apps.mjs index 64542c415..b2e45a98e 100644 --- a/.tools/lint-apps.mjs +++ b/.tools/lint-apps.mjs @@ -534,7 +534,10 @@ class AppLinter { } if (parsed.tag === "latest") { - this.add("error", "image.latest", `${app}/docker-compose.yml`, serviceKeyLine(content, service, "image"), `Image \`${image}\` uses the moving \`latest\` tag.`); + // Pinned latest is reproducible, but still weaker than a release tag. + // Unpinned latest never reaches this branch because parseImageRef requires + // a tag plus sha256 digest. + this.add("warning", "image.latest", `${app}/docker-compose.yml`, serviceKeyLine(content, service, "image"), `Image \`${image}\` uses the moving \`latest\` tag pinned by digest. Use a versioned release, commit, or date tag when upstream publishes one; pinned \`latest\` should be a last resort when no stable tag is available.`); } if (this.options.checkImages) {