Repository navigation
Description
Goal
One development tools image, ghcr.io/dan-petty/devtools, built FROM debian:sid. It holds the union of the tools that the devops-cli devcontainer, its runner and Job images, its tools.lock and its devcontainer features install today. It becomes the base of the devops-cli devcontainer image and of the devops-cli Job images that change git (runner, stage, implement, fix-checks), and it replaces the home-grown tool installer of devops-cli (tools.lock, devops install-tools). Owner decisions of 2026-11-19.
Tool sources (no version of a tool is copied into code)
- apt, floating with sid (a scheduled rebuild picks up updates), only where sid is current: git, jq, shellcheck, curl, socat, bubblewrap, gnome-keyring, zsh, sudo, the network tools (iputils-ping, iputils-tracepath, mtr-tiny, netcat-openbsd, tcpdump, traceroute), unzip, python3.14 with python-is-python3, nodejs and npm, ansible-core, bandit, podman, buildah, skopeo, crun, passt, uidmap, fuse-overlayfs, containers-storage. Podman replaces Docker (owner decision), so the image has no Docker engine.
- mise (
mise.tomlplusmise.lockwith checksums, short registry names, real files at fixed paths in/usr/local/bin) for the tools that sid lacks or ships too old: gh, kubectl, kustomize, helm, minikube, argo, argocd, kubectl-argo-rollouts, cloudflared, trivy, opentofu, promtool, kube-linter, popeye, pluto, kubeconform, tflint, k9s, gitleaks, osv-scanner, golangci-lint, vale, actionlint, hadolint, gh-dash, tuicr. Measured sid lag on 2026-11-19: gh 2.46.0 against 2.105.0, kubectl 1.36.4 against 1.37.2, promtool 3.5.3 against 3.16.0, kustomize 5.8.1 against 5.8.3, gitleaks 8.26.0 against 8.30.1. mise itself comes fromCOPY --from=jdxcode/mise:<tag>@sha256:<digest>. - uv from
COPY --from=ghcr.io/astral-sh/uv:<tag>@sha256:<digest>; semgrep and pre-commit as uv tools from a hashed lock. - npm: one
package.jsonandpackage-lock.jsonfor @fission-ai/openspec, @devcontainers/cli, style-dictionary, @github/copilot and @anthropic-ai/claude-code, installed withnpm ci --ignore-scripts.
Owner update of 2026-11-19 (replaces 'linux/amd64 only')
Build the image for linux/amd64 AND linux/arm64. Build each platform natively on its own GitHub-hosted runner (ubuntu-24.04 and ubuntu-24.04-arm; free for public repositories), not with QEMU emulation, push each by digest, and merge them into one multi-arch manifest list (docker buildx imagetools create), which then gets the attestation and the tag. mise.lock records the checksums of both platforms (mise lock --platform linux-x64,linux-arm64). The test step (<tool> --version for every tool) runs on both platforms. A tool with no arm64 build is named in the README, and the build fails on a missing tool rather than skip it silently.
Image and CI
- Dockerfile: pinned
# syntax=line,# check=error=true,FROM debian:sid@sha256:<digest>, the documented apt cache-mount pattern, no login user (each consumer adds its own uid 1000 user), linux/amd64 and linux/arm64 with no per-arch code in the Dockerfile. - CI: build; a test step that runs
<tool> --versionfor every tool and aCOPY --fromprobe of one binary intopython:3.14-slim-trixie; Trivy to SARIF that records the detected OS and the finding counts. Owner decision of 2026-11-19 (on PR feat: build and publish the devtools image from debian sid #3): the image scan is report-only (exit code 0, SARIF to code scanning, one category per platform), because the Go binaries of upstream tools at their newest release hold HIGH and CRITICAL findings that no change here can fix. The gate stays on the lock files: osv-scanner fails the build on a finding in the npm and Python locks. The daily rebuild and the Renovate bumps close the alerts. The images built FROM devtools use the same rule, and devops-cli records it, with the OS gap of sid, in the SECURITY.md relaxation table (#5447); osv-scanner on the lock files; push by digest with SBOM and provenance attestations; a daily scheduled rebuild with--pull --no-cache. - Renovate:
.github/renovate.jsonwith built-in managers only (dockerfile, mise, npm, pep621 or pip-compile for the uv tool lock, github-actions). The self-hosted Renovate runs mise to refreshmise.lock(owner decision; devops-cli change). - README: which tools come from apt and which from mise, and the rule "apt only where sid is current".
Done when
- CI is green, every
<tool> --versionpasses, and the image is onghcr.io/dan-petty/devtoolsby digest with an attestation. - A person makes the GHCR package public (a one-time package setting).
Proposed design
Problem statement
Build and publish ghcr.io/dan-petty/devtools from debian:sid for linux/amd64 and linux/arm64, holding the union of the tools that the devops-cli devcontainer, its runner and Job images, its tools.lock and its devcontainer features install today. Each platform is built natively on its own GitHub-hosted runner, pushed by digest, and merged into one attested manifest list. The Trivy HIGH/CRITICAL gate does not block: the owner decision of 2026-11-19 makes the image scan report-only, and osv-scanner keeps the gate on the npm and Python lock files. Two steps stay with people: the repository owner sets the GHCR package public after the first push. The devops-cli consumer change (images built FROM devtools, removal of tools.lock and devops install-tools, the SECURITY.md relaxation row, the Renovate mise refresh) stays in devops-cli.
Acceptance criteria
Requirement: Pinned base, pinned copies and BuildKit checks
The Dockerfile MUST start from debian:sid pinned by sha256 digest, MUST carry the pinned # syntax= line and # check=error=true, MUST pin every COPY --from image by tag and sha256 digest, and MUST pass the BuildKit checks.
Scenario: Build checks pass
- WHEN
docker buildx build --check .runs on the Dockerfile - THEN the command exits 0 and reports no warning.
Requirement: Native build on both platforms
The build workflow SHALL build linux/amd64 on ubuntu-24.04 and linux/arm64 on ubuntu-24.04-arm from one Dockerfile with no per-arch code, and SHALL push each platform by digest.
Scenario: Both platform jobs succeed
- WHEN the build workflow runs on a pull request
- THEN the amd64 job and the arm64 job each exit 0 and each pushes one platform digest.
Requirement: Dockerfile passes hadolint
The Dockerfile MUST pass hadolint with no finding.
Scenario: Lint the Dockerfile
- WHEN
hadolint Dockerfileruns - THEN the command exits 0 and prints no finding.
Requirement: Every tool answers its version command on each platform
The test step SHALL run the version command of every tool in the image on linux/amd64 and linux/arm64, and SHALL fail when a tool is missing rather than skip it.
Scenario: A missing tool fails the job
- WHEN the test step runs the version command for every tool on one platform
- THEN each command exits 0, and the job exits non-zero when one command exits non-zero.
Requirement: mise lock covers both platforms
mise.lock MUST hold the checksum of every mise tool for linux-x64 and linux-arm64.
Scenario: Locked install on arm64
- WHEN
mise install --lockedruns in the arm64 image - THEN mise installs every tool from a recorded checksum and exits 0.
Requirement: Reproducible npm install
The image MUST install the five npm tools with npm ci --ignore-scripts from one package.json and one package-lock.json.
Scenario: npm ci from the lock
- WHEN
npm ci --ignore-scriptsruns in the image build - THEN the command exits 0 and installs the versions recorded in
package-lock.json.
Requirement: uv tools from a hashed lock
The image MUST install semgrep and pre-commit from a hashed uv lock.
Scenario: Frozen uv install
- WHEN
uv sync --frozenruns in the image build - THEN it installs the locked versions of semgrep and pre-commit and exits 0.
Requirement: osv-scanner gates the lock files
The build MUST fail when osv-scanner finds a vulnerability in package-lock.json or the Python tool lock.
Scenario: A lock finding stops the build
- WHEN osv-scanner reports a finding for
package-lock.jsonor the Python tool lock - THEN the CI job exits non-zero.
Requirement: Image scan is report-only
The Trivy image scan SHALL exit 0, upload SARIF to code scanning with one category per platform, and record the detected OS and the finding counts.
Scenario: HIGH findings do not stop the build
- WHEN the scan step runs Trivy on an image that holds HIGH or CRITICAL findings
- THEN the step exits 0 and the code scanning upload shows one SARIF category for each platform.
Requirement: Binary runs in a consumer image
The CI SHALL copy one devtools binary with COPY --from into python:3.14-slim-trixie and SHALL run it there.
Scenario: Copied binary runs
- WHEN the probe step copies a devtools binary from the image into
python:3.14-slim-trixieand runs its version command - THEN the copied binary exits 0.
Requirement: Manifest list with attestations
The publish job MUST merge the two platform digests into one manifest list and MUST attach the SBOM and provenance attestations before it sets the tag.
Scenario: Inspect the published manifest
- WHEN
docker buildx imagetools inspect ghcr.io/dan-petty/devtools:<tag>runs - THEN the output lists linux/amd64 and linux/arm64 and shows the SBOM and provenance attestations.
Requirement: Daily rebuild without cache
A scheduled workflow SHALL rebuild the image daily with --pull --no-cache.
Scenario: Scheduled run uses a clean cache
- WHEN the scheduled rebuild completes
- THEN
gh run view --logshows--pull --no-cacheon the build step and the run exits 0.
Requirement: Renovate config is valid
.github/renovate.json MUST use only the built-in managers and MUST pass the Renovate validator.
Scenario: Validate the Renovate config
- WHEN
npx --yes renovate-config-validator .github/renovate.jsonruns - THEN the validator exits 0 and reports no error.
Requirement: README names the tool sources
The README MUST name which tools come from apt and which from mise, MUST state the rule that apt is used only where sid is current, and MUST name every tool that has no arm64 build.
Scenario: README lists the sources and the arm64 gap
- WHEN the live check of the README rendered on GitHub runs after the first publish
- THEN it has an apt section, a mise section with the rule, and a line for each tool without an arm64 build.
Requirement: No Docker engine
The image MUST NOT install a Docker engine; Podman and its helpers are the container runtime.
Scenario: No Docker daemon in the image
- WHEN
docker run --rm ghcr.io/dan-petty/devtools:<tag> command -v dockerdruns - THEN the command exits non-zero and
podman --versionexits 0.
Requirement: No login user
The Dockerfile MUST NOT set a login user, so each consumer adds its own uid 1000 user.
Scenario: The image runs as root by default
- WHEN
docker run --rm ghcr.io/dan-petty/devtools:<tag> id -uruns - THEN the command prints 0.
Existing Tool Considered
No alternatives check has run (alternatives is null). mise (https://mise.jdx.dev/) covers the install and the checksum lock of the tools that sid lacks or ships too old; this repository records mise.toml and mise.lock as its tool-version mechanism (.github/labels.yml:16). docker buildx covers the per-platform build and the imagetools create manifest merge. Both are open and maintained. mise lacks the OS packages, because apt installs git, jq, shellcheck, podman and the rest, and mise does not build or publish an image. buildx does not install a tool. npm ci and uv cover the npm and Python tool locks. The Dockerfile, the tool-test step and the workflow only wire these tools together, so the change builds no tool installer of its own; a home-grown installer would cost the tokens and the elapsed time that mise already spent on registry names, per-platform checksums and locked installs, and it is the code that the owner decision replaces.
Key questions
- Who makes the GHCR package public?: The repository owner. After the first push, the owner sets the visibility of the
devtoolspackage to public in the package settings. This is a one-time step, and no code change does it. (a person decides) - Does the Trivy HIGH/CRITICAL finding gate block the image build?: No. The owner decided on 2026-11-19 on PR feat: build and publish the devtools image from debian sid #3 that the image scan is report-only: exit code 0, SARIF to code scanning, one category per platform. The gate stays on the npm and Python lock files, and osv-scanner fails the build on a finding there. (proposed)
- Chosen: Report-only image scan. The newest releases of gitleaks, kube-linter and popeye hold HIGH and CRITICAL findings that no change here fixes.
- Rejected: Fail the build on HIGH or CRITICAL. The gate would stop every build, and the owner decision recorded in the body rejects it.
- Rejected: Pin older tool releases. The body forbids a version in code, and older releases lose fixes.
- Which tool installs the tools that sid lacks or ships too old?: mise, with
mise.tomlandmise.lockwith checksums. mise writes real files at fixed paths in/usr/local/bin. mise itself comes from a pinnedCOPY --from=jdxcode/mise. (best practice) [sources: .github/labels.yml:16]- Chosen: mise with a hashed lock. It installs from short registry names, records a checksum for each platform, and needs no version in the Dockerfile.
- Rejected: Home-grown
tools.lockanddevops install-tools. The owner decision replaces it, and the project keeps that code. - Rejected: apt from sid only. sid lags: gh 2.46.0 against 2.105.0, promtool 3.5.3 against 3.16.0.
- Rejected: Download tarballs in the Dockerfile. It gives no checksum and needs per-arch code.
- How does the build make one multi-arch image without QEMU?: Build each platform on its own GitHub-hosted runner (
ubuntu-24.04andubuntu-24.04-arm), push each by digest, and merge the two digests withdocker buildx imagetools create. The manifest list then gets the attestations and the tag. (proposed)- Chosen: Native runner for each platform. It is fast, and the tool test and
mise.lockrun on each real platform. - Rejected: QEMU emulation. It is slow, and the arm64 tool test does not run on an arm64 host.
- Rejected: linux/amd64 only. The owner update of 2026-11-19 replaces that decision.
- Chosen: Native runner for each platform. It is fast, and the tool test and
- Which container engine does the image hold?: Podman and its helpers (buildah, skopeo, crun, passt, uidmap, fuse-overlayfs, containers-storage), and no Docker engine. The owner decision makes Podman replace Docker. (proposed)
- Chosen: Podman. The owner decision of 2026-11-19 makes Podman replace Docker.
- Rejected: Docker engine. The owner decision removes it.
- Which parts of the goal belong to the devops-cli repository?: The devcontainer and Job images that build FROM devtools, the removal of
devops install-toolsandtools.lock, the SECURITY.md relaxation row (#5447) and the self-hosted Renovate mise refresh are devops-cli changes. This issue delivers and publishes the image only. (best practice) [sources: .github/labels.yml:6, .github/labels.yml:22]- Chosen: Image only in this repository. One pull request changes one repository, and the scopes of this repository cover the image, the CI, the dependencies, the security policy and the README only.
- Rejected: Change devops-cli in the same pull request. A pull request cannot change a second repository.
Open questions
- Who makes the GHCR package public? (a person decides)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 19, 2026
Draft #3 builds the image and passes the tool test, the copy probe and osv-scanner. The HIGH/CRITICAL Trivy gate on the binaries fails: 4 CRITICAL findings are in gitleaks 8.30.1, kube-linter 0.8.3 and popeye 0.22.1, which are their newest releases, and an agent may not ignore a CRITICAL finding. The evidence and the owner question are in #3 (comment). The work stops until the owner decides.
fix: make the Trivy image scan report-only and split the push job
devops-cli-service commentedon Nov 19, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
fix: make the Trivy image scan report-only and split the push job
feat: build and publish the devtools image from debian sid (#3)
devops-cli-service commentedon Nov 22, 2026
Released in v1.0.0: https://github.com/dan-petty/devtools/releases/tag/v1.0.0