From ed0950e950fb6bf5e37f083a0e68900c92d0f036 Mon Sep 17 00:00:00 2001 From: "John C. Bland II" Date: Thu, 13 Aug 2026 12:49:31 -0500 Subject: [PATCH] fix: guard null Entrypoint/Cmd in step-summary inspect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Images defining only ENTRYPOINT (no CMD) — or vice versa — made the summary step fail with 'jq: Cannot iterate over null', breaking ci-docker for consumers (e.g. slack-notifier, github-status-updater). --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 1a8a23a..4fe5b15 100644 --- a/action.yml +++ b/action.yml @@ -267,8 +267,8 @@ runs: SIZE_MB=$(echo "scale=1; $SIZE_BYTES / 1048576" | bc) LAYER_COUNT=$(jq '.[0].RootFS.Layers | length' inspect.json) PORTS=$(jq -r '.[0].Config.ExposedPorts // {} | keys | join(", ")' inspect.json) - ENTRYPOINT=$(jq -r '.[0].Config.Entrypoint | join(" ")' inspect.json) - CMD=$(jq -r '.[0].Config.Cmd | join(" ")' inspect.json) + ENTRYPOINT=$(jq -r '.[0].Config.Entrypoint // [] | join(" ")' inspect.json) + CMD=$(jq -r '.[0].Config.Cmd // [] | join(" ")' inspect.json) STOP_SIGNAL=$(jq -r '.[0].Config.StopSignal // "n/a"' inspect.json) DRIVER=$(jq -r '.[0].GraphDriver.Name' inspect.json)