ci: pin runtime package versions and harden supply chain#11
Merged
Nyrest merged 7 commits intoMay 13, 2026
Conversation
…hain Resolve merge conflicts by combining supply-chain hardening with flavor-based matrix build from upstream/main: - Keep pinned version manifests (versions/) and SHA-verified curl downloads - Adopt upstream's RUNTIME_FLAVOR build arg and common/full-only package split - Merge flavor-aware runtime verification with version pinning checks - Update workflow: matrix build with SHA-pinned actions, build-push-verify-promote pattern - Add data science packages and @mermaid-js/mermaid-cli from upstream
| # Apt package versions are intentionally left to signed repository metadata so Ubuntu and vendor security | ||
| # updates can flow, while the third-party NodeSource/GitHub CLI trust roots are still constrained via | ||
| # dedicated keyrings above. | ||
| RUN set -eux; \ |
| # Apt package versions are intentionally left to signed repository metadata so Ubuntu and vendor security | ||
| # updates can flow, while the third-party NodeSource/GitHub CLI trust roots are still constrained via | ||
| # dedicated keyrings above. | ||
| RUN set -eux; \ |
| && curl -A "Mozilla/5.0" -fsSL -o /tmp/oxipng.deb "https://github.com/oxipng/oxipng/releases/download/v${OXIPNG_VERSION}/oxipng_${OXIPNG_VERSION}-1_$(dpkg --print-architecture).deb" \ | ||
| && dpkg -i /tmp/oxipng.deb \ | ||
| && rm -f /tmp/cloudflared.deb /tmp/oxipng.deb | ||
| RUN set -eux; \ |
| && ln -sf "${PIPBIN}" /usr/local/bin/pip3 \ | ||
| && ln -sf /usr/local/bin/pip3 /usr/local/bin/pip \ | ||
| && uv cache clean | ||
| RUN set -eux; \ |
- uv --version outputs a hash+date suffix; grep -Fx fails because -x requires exact line match. Changed to grep -F (substring match) like the other tool version checks in the Dockerfile. - PYTHON_VERSION=3.14 did not match the upstream Python 3.13 baseline.
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.
Summary
What changed
versions/tool-versions.envfor exact versions and checksums of curl-downloaded toolsversions/bun-global-packages.txt,versions/npm-global-packages.txt, andversions/python-requirements.txtcurl | bashinstalls for Bun and uv with pinned release artifacts plus checksum verificationverify-runtime.shto assert pinned versions and Python package versions from the checked-in manifestsVerification
git diff --checkbash -n verify-runtime.shshellcheck verify-runtime.sh.github/workflows/docker-image.ymlNotes
npm,bun,uv,pip, and curl-downloaded assets)