ci: bump publish-platforms pin to the multipart-JSON fix - #455
Open
tastybento wants to merge 2 commits into
Open
ci: bump publish-platforms pin to the multipart-JSON fix#455tastybento wants to merge 2 commits into
tastybento wants to merge 2 commits into
Conversation
The pinned SHA predates BentoBoxWorld/.github#13, which moved the CurseForge metadata and Hangar versionUpload JSON out of inline curl -F values and into files. curl treats a ';' in an inline -F value as the start of a type= attribute, so a release body containing a semicolon truncates the JSON and both platforms reject the upload. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SAQ3YQkcfRoCZEwa6SPJcp
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SAQ3YQkcfRoCZEwa6SPJcp
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



What
Bumps the pinned SHA of the shared
publish-platforms.ymlreusable workflow to1f91a0e(master HEAD ofBentoBoxWorld/.github).Why
The pinned version passes the CurseForge
metadataand HangarversionUploadmultipart JSON as an inline curl value:curl reads a
;inside an inline-Fvalue as the start of atype=/filename=attribute, so the JSON is silently truncated at the first semicolon in the release body. Both platforms then reject the upload:{"errorCode":1002,"errorMessage":"Error in field \metadata`: Invalid JSON."}`{"status":400,"detail":"Failed to read request"}This is latent, not theoretical: it took down the AOneBlock 1.26.3 publish (run) because those release notes happened to contain one semicolon. Any release body with a semicolon in it trips this.
BentoBoxWorld/.github#13 fixed it on 2026-07-20 by writing the JSON to a file and using curl's
<fileform (-F "metadata=<cf_meta.json;type=application/json"). This repo was still pinned to the commit before that fix.Modrinth publishing is unaffected — it does not go through this workflow.
No behaviour change beyond the fix; the pin is the only line touched.
🤖 Generated with Claude Code
https://claude.ai/code/session_01SAQ3YQkcfRoCZEwa6SPJcp