Skip to content

Commit 5ab2004

Browse files
djs55claude
andcommitted
Fix bin-image workflow JSON parsing error
Update the crazy-max/.github reusable workflow to the latest version to fix a JSON parsing error that occurs when PR metadata contains control characters (like newlines in the PR body). The previous version (d9a10e2) used actions/github-script@v7 which had an issue where it embedded the GitHub event payload directly into a JavaScript template literal containing JSON. When JSON.parse() encountered unescaped control characters, it would fail with: SyntaxError: Bad control character in string literal in JSON at position... The newer version (387d336) uses actions/github-script@v8 which handles JSON serialization more properly, preventing these parsing errors. Fixes the build failure seen in PR #654. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]> Signed-off-by: David Scott <[email protected]>
1 parent 7722cbc commit 5ab2004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/bin-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ env:
2626
REPO_SLUG: moby/vpnkit-bin
2727
jobs:
2828
build:
29-
uses: crazy-max/.github/.github/workflows/bake-distribute-mp.yml@d9a10e2737504a6e253f96e344cef684b0e00cb5
29+
uses: crazy-max/.github/.github/workflows/bake-distribute-mp.yml@387d336cac5f20cba622a6b9a866a80ea4c2c575
3030
with:
3131
target: bin-image
3232
push: ${{ github.event_name != 'pull_request' && github.repository == 'moby/vpnkit' }}

0 commit comments

Comments
 (0)