Repository navigation
Rebuild the worker image's OS package layer - #738
Merged
Merged
Conversation
The Snyk scan in the Build job fails on the worker image: CVE-2026-111497 in libbrotli1 1.1.0-2build2, which curl brings in. Ubuntu has the fix (1.1.0-2ubuntu0.1), but CI reuses the cached apt layer, and the weekly Build No Cache run rebuilds only the web image. - Web and worker Dockerfiles: an OS_PACKAGES_DATE build argument before the apt layer. A new value makes Docker run the layer again. Set to 2026-10-29 to get the brotli fix now. - build-nocache.yml: rebuild the worker image too, with its SBOM. - docs/dependabot.md: a new "OS packages" section says when the layer runs and what to do when Snyk finds an Ubuntu package issue. - docs/sbom.md: the weekly run rebuilds both images. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidgouge
approved these changes
Oct 29, 2026
ajs-uk-dev
pushed a commit
that referenced
this pull request
Oct 29, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 of 7 tasks
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.
Closes #737.
Why
The Snyk scan in the Build job fails on the worker image. Snyk finds CVE-2026-111497 (high) in
libbrotli11.1.0-2build2.curlbrings in this package. Ubuntu has the fix, 1.1.0-2ubuntu0.1.The worker Dockerfile runs
apt-get upgradeand installscurl. But CI reuses that layer from the build cache (the log showsCACHED), so the fix does not get in. The weekly Build No Cache run rebuilds only the web image, so the worker layer stays old.This blocks the Build job on #721 and #712. It will also block
mainafter the next merge.Changes
OS_PACKAGES_DATEbuild argument before the apt layer. A new value makes Docker run the layer again. The value is2026-10-29, so this pull request gets the fix now.build-nocache.yml: the weekly run also rebuilds the worker image and attaches its SBOM.docs/dependabot.md: the old text saidapt-get upgraderuns at each build. That is not true with the cache. A new "OS packages" section tells when the layer runs again, and what to do when Snyk finds an Ubuntu package issue.docs/sbom.md: the weekly run rebuilds both images.No application code changes. No Snyk, SBOM or pin check is turned off.
Checks
scripts/check-pins.shandscripts/check-playwright-pin.shpass.build-nocache.ymlparses.mainDockerfile givesCACHEDfor the apt layer. A new value runs it again (DONE 6.7s). The same value again givesCACHED.runtimeand workerfinaltargets pass.docker scout cves --only-severity high,critical --only-package-type debfinds no issue in either image. The worker haslibbrotli11.1.0-2ubuntu0.1 andcurl.After merge
maininto the open pull requests (#711 16 to 19 Include journey (AB#301154) #721, Results Enquiry - Recent Enquiries - Show grade information #712), so that their Build job runs the new layer.mainonce, to refresh the cache now.