Skip to content

fix: guard null Entrypoint/Cmd in step-summary inspect - #109

Closed
John C. Bland II (johncblandii) wants to merge 1 commit into
mainfrom
fix/inspect-null-guards
Closed

fix: guard null Entrypoint/Cmd in step-summary inspect#109
John C. Bland II (johncblandii) wants to merge 1 commit into
mainfrom
fix/inspect-null-guards

Conversation

@johncblandii

Copy link
Copy Markdown
Contributor

what

  • Add // [] null guards to the Docker Inspect summary step's Entrypoint/Cmd jq expressions

why

  • Images that define only an ENTRYPOINT (no CMD), or only a CMD, make docker inspect report the other field as null, and jq's join cannot iterate over null — the step exits 5 and fails ci-docker for any such consumer (hit by slack-notifier and github-status-updater when they bumped from 1.15.1 to v3; both currently work around it with summary: "false")
  • Verified: jq -r '.[0].Config.Cmd // [] | join(" ")' returns an empty string for null input

references

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).
Copilot AI lite review requested due to automatic review settings August 13, 2026 17:49
@johncblandii John C. Bland II (johncblandii) added the patch A minor, backward compatible change label Aug 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@johncblandii

Copy link
Copy Markdown
Contributor Author

Closing as superseded: main independently landed the identical null-guard fix for the step-summary Entrypoint/Cmd jq expressions (parenthesized form, semantically the same), so this branch now carries no delta against main. The summary: "false" workarounds in slack-notifier#42 and github-status-updater#32 can be reverted once a release containing the fix is cut and their pin is bumped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch A minor, backward compatible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants