Skip to content

fix: summarize results (#26)#27

Closed
schnellert wants to merge 1 commit into
mainfrom
fix/summarize-results
Closed

fix: summarize results (#26)#27
schnellert wants to merge 1 commit into
mainfrom
fix/summarize-results

Conversation

@schnellert
Copy link
Copy Markdown
Member

@schnellert schnellert commented May 27, 2026

Closes #26

@schnellert schnellert self-assigned this May 27, 2026
@schnellert schnellert requested a review from a team as a code owner May 27, 2026 07:57
Copilot AI review requested due to automatic review settings May 27, 2026 07:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes the "Argument list too long" failure in the Summarize results step of the build-docker-image composite action (issue #26). Because environment variables passed to a subprocess count toward Linux's ARG_MAX, a large metadata output from docker/build-push-action could cause Node to fail to start. The fix removes the METADATA env var and instead inlines the JSON output directly into the github-script source (which is written to a temp file, bypassing the arg/env size limit).

Changes:

  • Removed the env.METADATA mapping from the Summarize results step.
  • Replaced JSON.parse(process.env.METADATA) with direct GitHub Actions template interpolation of steps.build.outputs.metadata (with a "" fallback).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +97 to 99
const metadata = ${{ steps.build.outputs.metadata || '""' }};
const digest = metadata['containerimage.digest'];
const [image, ...images] = metadata['image.name'].split(',');
@schnellert
Copy link
Copy Markdown
Member Author

Doesn't solve the actual issue

@schnellert schnellert closed this May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Fix 'Argument list too long' in summarize results

2 participants