Repository navigation
Fix: hadolint digest to bare image name for Dependabot readability (slice #4253) - #4523
pithead-developer[bot] wants to merge 18 commits into
Conversation
- Add .config/package.json + package-lock.json for biome, markdownlint-cli2, taplo (npx tools) — Dependabot tracks via new npm ecosystem entry - Create .config/hadolint/Dockerfile with digest-pinned image reference - Switch ci.yml hadolint step to container-based execution - Update Makefile lint-js, lint-md, lint-toml to use lockfile via npx --no-install Co-Authored-By: Claude Code <noreply@anthropic.com>
…e-pins-for-shellche' into agent/4253-ci-dependabot-readable-pins-for-shellche
|
FAIL What I investigatedThe PR description does not match the required three-section format. Reviewed head: What are the gaps
|
…e-pins-for-shellche' into agent/4253-ci-dependabot-readable-pins-for-shellche
…lice #4253) Dependabot cannot parse docker.io/ or ghcr.io/ prefixed container image references. The prior slice committed ghcr.io→docker.io but the correct fix is the bare image name: hadolint/hadolint:latest@sha256:...
|
FAIL What I investigatedThe PR description does not match the required three-section format. Reviewed head: What are the gaps
|
…ly (slice #4253) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…4253) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Blocked on #4618: |
|
#4618 closed as a duplicate of #4537: the libzstd1 fix is on develop (#4604) and reaches develop-v2.0.5 only through the forward merge #4569, which is still open, so this base does not have it yet. |
…ci-dependabot-readable-pins-for-shellche
|
FAIL What I investigatedRe-review of a9e7afe against 5f4b8b9. The worker's commit is 17e37fc; the rest came in with the develop-v2.0.5 merge. F1-F5 are fixed: the docker entry is in place, kept-manual reasons are on #4133, the Makefile uses npm ci, ci.yml reads the digest from one place behind a guard, and libzstd1 is out of the diff. GitHub checks are 43 pass and 2 schedule-only skips. Three new blockers came in with 17e37fc: a committed stale
Reviewed head: What are the gaps
|
|
PASS What I investigatedRe-review of the worker's two commits since a9e7afe (d7f2c02, a6a7a24; base commit present in the clone). Both are fixes for round-2 findings: the stray .pr-body is gone, the bare-image guard now fails on registry hosts, the explanatory @# lines are out of the lint-toml hunk, and the npm install now runs once through a lockfile-stamp prerequisite. All 41 required checks are green at a6a7a24. Every path is CI tooling or docs (.config, .github, Makefile, scripts/lint, docs), so tiers 1-3 are the right proof and no bench job is needed. The topology scan is clean. Body tidy (F4523-12, note only): the last proof line still says the current head's checks were pending; they are now 41 pass, plus 2 schedule-only CVE-sweep skips.
Reviewed head: |
Owner brief for
|
What's the problem
Part of #4253
CI tool pins were invisible to Dependabot: biome, markdownlint-cli2 and taplo ran through
npx --yes(unpinned fetch at run time), and hadolint was a curl-plus-sha256 download. This PR covers #4253 criterion 1 (npm tools from a lockfile with a Dependabot entry), the hadolint part of criterion 2, and the tier-1 guard of criterion 3. shellcheck, shfmt and jq are kept manual with reasons recorded on #4133 (comment). Thelibzstd1fix thatBuild image (dashboard)needs reached this base through forward merge #4569 (#4618 closed as a duplicate of #4537), so this PR carries none of it.How I fixed it
.config/package.jsonandpackage-lock.jsonpin biome 2.5.0, markdownlint-cli2 0.18.1 and taplo 0.7.0. One file target,.config/node_modules/.package-lock.json, runsnpm ci --prefer-offlineonce when the lockfile or manifest changes;lint-js,lint-mdandlint-tomldepend on it and call.config/node_modules/.bin/<tool>..github/dependabot.ymlhas annpmentry for/.config. CONTRIBUTING.md and docs/dev/testing-strategy.md describe the lockfile install instead ofnpx, and CONTRIBUTING.md now carries the reasonlint-tomllists tracked files only..config/hadolint/Dockerfileholds the one digest-pinnedFROM hadolint/hadolint:latest@sha256:...(bare name, which Dependabot reads) and/.config/hadolintis listed in the test-harness docker entry. Theci.ymlhadolint step reads its image from that Dockerfile and runshadolintexplicitly, so the digest has one source.scripts/lint/test-dependabot-coverage.py(already inmake test-tools) gainscheck_hadolint_pin: it fails if the docker or npm entry is missing, the FROM is not one digest-pinned image, the FROM's first path segment is a registry host (contains.or islocalhost; ahost:portprefix already fails the digest-pin regex), orci.ymlnames the image itself.Shortcut: hadolint stays on the
latesttag with a digest; upgrade when Dependabot digest bumps need a version tag.Here is the proof
npm ciin the Makefile, npm Dependabot entry (.github/dependabot.yml,/.config)scripts/lint/test-dependabot-coverage.py/.config/hadolintentry removed,python3 scripts/lint/test-dependabot-coverage.pyprints/.config/hadolint must sit in a docker entry; with the FROM changed todocker.io/hadolint/hadolint:latest@sha256:32dac9...it printsthe hadolint FROM must be a bare image name Dependabot can read(exit 1); on this head it printsall surfaces tracked, no Dependabot-invisible pins(exit 0).config/node_modulesremoved,make lint-js lint-md lint-tomlrannpm cionce and passed (biomeChecked 109 files, markdownlint0 error(s), taplo ok); a secondmake lint-js lint-mdran nonpm ci.ruff checkandruff format --checkon the guard are clean;make lint-pithead-build,make lint-docs-voice,make lint-path-referencesandFILE_BUDGET_BASE_REF=origin/develop-v2.0.5 make lint-file-budgetpass.Ponytail pass: cut the shipped-image change and the
.gitignoreedit; nothing else further.