Fix bin-image workflow JSON parsing error #655
+3
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
crazy-max/.githubreusable workflow from commitd9a10e2to387d336(latest)m4pro.mediumresource classProblem 1: GitHub Actions JSON Parsing Error
The bin-image workflow was failing with:
This occurred because the older version of the workflow used
actions/github-script@v7which embedded GitHub event payloads (containing PR body text with newlines and other control characters) directly into a JavaScript template literal containing JSON. WhenJSON.parse()tried to parse this, it encountered unescaped control characters and failed.Problem 2: CircleCI Resource Class Incompatibility
The CircleCI build was failing with:
Xcode 14.0.0 is not compatible with the new default
m4pro.mediumresource class. CircleCI changed the default macOS resource class for free plans on November 10, 2025, and Xcode 14.0.0 only supports older M1/M2 resource classes which are being deprecated in February 2026.Solution
GitHub Actions Fix
The newer version of the
crazy-max/.githubworkflow usesactions/github-script@v8which properly handles JSON serialization, preventing control character parsing errors.CircleCI Fix
Updated to use Xcode 14.3.1 (latest Xcode 14.x version) with explicit
resource_class: m4pro.mediumspecification. This combination is supported per CircleCI's compatibility matrix and ensures long-term compatibility.Testing
This should fix the build failures observed in PR #654: https://github.com/moby/vpnkit/actions/runs/20041297769/job/57478620313
🤖 Generated with Claude Code