Skip to content

Commit 7f4a972

Browse files
vigo999claude
andcommitted
ci: use --data-binary with Content-Type for GitCode S3 upload
S3 pre-signed URLs are sensitive to headers included in the request. Use explicit Content-Type and --data-binary instead of -T. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0ea3bc5 commit 7f4a972

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/sync-gitcode-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,10 @@ jobs:
233233
fi
234234
235235
echo "Uploading ${file_name}..."
236-
curl -sS --fail \
236+
curl -sS --fail -w "\nHTTP %{http_code}\n" \
237237
-X PUT \
238-
-T "${file}" \
238+
-H "Content-Type: application/octet-stream" \
239+
--data-binary "@${file}" \
239240
"${upload_url}"
240241
done
241242

0 commit comments

Comments
 (0)