Skip to content

fix: bump node from e67514e to 50c8e8c - #656

Merged
andris9 merged 1 commit into
masterfrom
dependabot/docker/node-50c8e8c
Sep 13, 2026
Merged

fix: bump node from e67514e to 50c8e8c#656
andris9 merged 1 commit into
masterfrom
dependabot/docker/node-50c8e8c

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 12, 2026

Copy link
Copy Markdown
Contributor

Warning

Cooldown could not be applied because no publication date was available from the registry.

Bumps node from e67514e to 50c8e8c.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file docker Pull requests that update docker code labels Sep 12, 2026
andris9 added a commit that referenced this pull request Sep 13, 2026
… branch ref

The image build did `COPY .git/refs/heads/master`, which tied it to one branch
name. A checkout with no local master ref failed before the first build step with
"failed to compute cache key: /.git/refs/heads/master: not found", and that is
every pull_request build, because actions/checkout leaves the merge ref detached.
So the docker_scan job had never once passed on a pull request since it was added
in ad190d3. It went unnoticed because the only other pull requests are
release-please branches, which the job's own `if:` skips - the dependabot node
bump in #656 was the first real PR run. The ref was never a dependable file
either: a fresh clone packs its refs away.

The commit now arrives as EE_COMMIT_HASH, which update-info.sh already preferred.
Passing it is not optional anywhere it matters, because the failure mode changes
shape: update-info.sh writes `"commit": ""` rather than failing, which is right
for its non-Docker callers (render.yaml supplies nothing) and wrong for an image
that would then be unable to say what it was built from. So the Dockerfile
requires it with a `${EE_COMMIT_HASH:?}` check, which fails a build run by hand
just as loudly as one run by a workflow, and docker-smoke-test.sh asks the built
image for its commit rather than trusting the wiring. All five build-push-action
steps across the three workflows pass it; the two in release.yaml and deploy.yml
matter most, since those publish.

The ARG sits below `npm ci` on purpose. An ARG's value is part of the cache key
of every RUN beneath it, confirmed against BuildKit, so grouping it with the
other ARGs at the top of the stage - the obvious tidy-up - would rebuild the
install layer on every commit. A guardrail pins the position, the requirement and
the absence of any COPY out of .git, and it shares the Dockerfile COPY parser
with test/dockerfile-cli-modules-test.js rather than adding a second, looser
notion of what a COPY line is.

update-info.sh loses its `.git/refs/heads/master` branch outright. It existed for
the Docker build alone, nothing can reach it now, and it carried the same
hardcoded branch name this change is removing.

A .dockerignore comes with it. The Dockerfile copies an allowlist, so this is
mostly about not shipping the working tree to the daemon, but two rules do reach
the image: `**/.DS_Store` drops the static/.DS_Store that was being published,
and keylog.txt - a TLS session key log that `npm run dev` writes - no longer
reaches the build context or the layer cache.

Verified end to end: a build without the arg fails with a message naming the fix,
a build with it produces the right commit and passes the smoke test, and the
image carries no .git, .env or keylog.txt.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N4oTpFcgoZe2fGDiHQg5Yu
Bumps node from `e67514e` to `50c8e8c`.

---
updated-dependencies:
- dependency-name: node
  dependency-version: 24-alpine
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/docker/node-50c8e8c branch from ab1e24b to a91d412 Compare September 13, 2026 17:25
@andris9
andris9 merged commit 7e6808b into master Sep 13, 2026
14 of 17 checks passed
@andris9
andris9 deleted the dependabot/docker/node-50c8e8c branch September 13, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file docker Pull requests that update docker code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant