fix: upgrade base packages and npm to clear the image scan #9

Merged
fristyagent merged 1 commits from fix/image-scan into main 2026-11-20 14:44:38 +03:00
Member

Ne

  • apt-get upgrade -y taban paketler kurulmadan önce çalışıyor: buildpack-deps imajının yayınlandığı gün donmuş linux-libc-dev (6.8.0-149) yüzünden 24.04 CRITICAL taramasında düşüyordu.
  • NPM_VERSION=11.21.3 pinlendi ve Renovate'e bağlandı. node 26.13.1'in getirdiği npm 11.20.0, undici 6.28.0 + brace-expansion 5.0.9 taşıyordu (12 HIGH). npm yerinde yükseltildiği için hardlink kırılıyor, tool-cache kopyası elle tazeleniyor.
  • Sürüm şeması: v0.0.0-dev.<sha> kaldırıldı; her main build'i son v* tag'inden patch bump'ı hesaplayıp v<semver>-ubuntu-<base> yayınlıyor ve tüm base'ler geçtikten sonra commit'i tag'liyor.
  • README/CONTRIBUTING: pinli sürümler yerine 26.x/major satırı, yeni Tags + Versions bölümleri, Conventional Commits bölümü.

Ölçüm (yerel 24.04 build, CI ile aynı trivy komutu)

Önce (run #22) Sonra
CRITICAL 5 0
HIGH 157 10

Kalan 10: pip'in kendi SBOM'undan gelen setuptools yanlış pozitifi (1), apt'teki en yeni buildx (1) ve compose (1), latest nfpm (1), latest tea (6). Hiçbiri için yayınlanmış düzeltme yok.

Smoke test tests/default.sh 24.04'te geçti.

## Ne - `apt-get upgrade -y` taban paketler kurulmadan önce çalışıyor: `buildpack-deps` imajının yayınlandığı gün donmuş `linux-libc-dev` (6.8.0-149) yüzünden 24.04 CRITICAL taramasında düşüyordu. - `NPM_VERSION=11.21.3` pinlendi ve Renovate'e bağlandı. node 26.13.1'in getirdiği npm 11.20.0, undici 6.28.0 + brace-expansion 5.0.9 taşıyordu (12 HIGH). npm yerinde yükseltildiği için hardlink kırılıyor, tool-cache kopyası elle tazeleniyor. - Sürüm şeması: `v0.0.0-dev.<sha>` kaldırıldı; her main build'i son `v*` tag'inden patch bump'ı hesaplayıp `v<semver>-ubuntu-<base>` yayınlıyor ve **tüm base'ler geçtikten sonra** commit'i tag'liyor. - README/CONTRIBUTING: pinli sürümler yerine `26.x`/major satırı, yeni Tags + Versions bölümleri, Conventional Commits bölümü. ## Ölçüm (yerel 24.04 build, CI ile aynı trivy komutu) | | Önce (run #22) | Sonra | |---|---|---| | CRITICAL | 5 | **0** | | HIGH | 157 | **10** | Kalan 10: pip'in kendi SBOM'undan gelen setuptools yanlış pozitifi (1), apt'teki en yeni buildx (1) ve compose (1), latest nfpm (1), latest tea (6). Hiçbiri için yayınlanmış düzeltme yok. Smoke test `tests/default.sh` 24.04'te geçti.
fristyagent added 1 commit 2026-11-20 14:36:01 +03:00
fix: upgrade base packages and npm to clear the image scan
build / build (26.04) (pull_request) Successful in 3m34s
build / build (26.10) (pull_request) Successful in 3m35s
build / build (24.04) (pull_request) Successful in 3m38s
a7f9769a82
apt-get upgrade keeps buildpack-deps from freezing linux-libc-dev at the
version the base image shipped with; five CRITICAL kernel CVEs in that
package alone failed the 24.04 publish. npm 11.21.3 replaces the undici
6.28.0 and brace-expansion 5.0.9 bundled with node 26.13.1, 12 HIGH
findings. The npm tree is copied back into the tool cache because the
in-place upgrade breaks its hardlink.

Release pipeline: each main build now cuts the next patch from the newest
v* tag, publishes v<semver>-ubuntu-<base> next to the moving ubuntu-<base>
tags, and only tags the commit after every base has published, so a failed
scan can no longer leave a half published version. The v0.0.0-dev.<sha>
fallback is gone.

Docs: README no longer pins tool versions that Renovate already tracks, and
the image tags, versioning and commit conventions are written down.
fristyagent merged commit 5ff5e34919 into main 2026-11-20 14:44:38 +03:00
fristyagent deleted branch fix/image-scan 2026-11-20 14:44:38 +03:00
Sign in to join this conversation.