Skip to content

Fix weekly rebuild - #101

Open
carole-lavillonniere wants to merge 2 commits into
mainfrom
cosy-926-release-visibility
Open

Fix weekly rebuild#101
carole-lavillonniere wants to merge 2 commits into
mainfrom
cosy-926-release-visibility

Conversation

@carole-lavillonniere

@carole-lavillonniere carole-lavillonniere commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #99.

The PR forgot to create a github release and to tag the new image with latest and v{version}

Changes

  • Publish v${NEW} and latest alongside ${NEW}. v${NEW} is the one the scan resolves; latest is for docker pull and the marketplace, which were still being served the superseded 2026.8.0. type=sha stays dropped — the candidate is built from the commit before the version bump, so sha-* would point at the wrong tree.
  • gh release create after the tag push, so the scan window actually advances. Ordered after the publish deliberately: the Docker Hub tag has to exist before a release points at it.
  • SHA-pin build-push-docker.yml's five actions. Somewhat unrelated to the other changes here but it is the recommended way to pin actions, as dicussed in Weekly rebuild + Dependabot #99.

Already applied by hand, so this week clears

  • v2026.9.0 and latest retagged onto the 2026.9.0 index (sha256:93176748…) — by digest, no rebuild
  • release v2026.9.0 cut against the existing tag

Yesterday's rebuild cleared CVE-2026-14456 and published 2026.9.0, and the scan
refiled that same CVE this morning (BEE-1172, BEE-1173). It never looked at the
rebuilt image: secops resolves this product from our last two GitHub *releases*
(localstack/secops, localstack_products.json: type=github,
github_releases_fetch_limit=2), looking each release's tag_name up verbatim on
Docker Hub. We pushed a bare git tag and no release, so the scan window stayed on
v2026.8.0 -- and Docker Hub had no v2026.9.0 tag for it to resolve either, since
the publish step minted only the bare version.

So: publish v${NEW} alongside ${NEW}, and cut the release. Also move latest, which
nothing in the scan reads but `docker pull` and the marketplace do -- it still
points at the superseded 2026.8.0. type=sha stays dropped: the candidate is built
from the commit before the version bump.

This does not stop a *new* Alpine CVE being ticketed. localstack_products.json
still has docker-desktop as rebuild_model=on-release, so classify_findings.py
rule 3 tickets OS-layer findings instead of leaving them to the rebuild; that
entry wants flipping to scheduled now that this workflow exists.

Also SHA-pin build-push-docker.yml's five actions, at the versions Dependabot
proposes in #100 -- that file has always used floating tags, and it is the one
holding the Docker Hub credentials. Both tags already ship provenance
attestations, so the major bumps do not change the published index shape.
@carole-lavillonniere
carole-lavillonniere force-pushed the cosy-926-release-visibility branch from 53a3eee to 0f7e5fc Compare September 2, 2026 08:19
@carole-lavillonniere carole-lavillonniere changed the title Cut a GitHub release from the weekly rebuild Fix weekly rebuild Sep 2, 2026
@carole-lavillonniere
carole-lavillonniere marked this pull request as ready for review September 2, 2026 08:28

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: now though wouldn't build-push-docker.yml get triggered again and try to push a tag that has already been published by the Publish (multi-arch) step?

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.

2 participants