Skip to content

Commit f0d09b7

Browse files
pRizzclaude
andcommitted
fix: add User-Agent header to crates.io API requests
crates.io's data access policy requires a descriptive User-Agent header. Without one, the default curl/X.Y.Z agent gets 403'd, breaking the CI "Determine core version and publication status" step. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 45a4533 commit f0d09b7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/check-crate-version-published.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ http_status="$(
1818
--silent \
1919
--show-error \
2020
--location \
21+
--user-agent "opencode-cloud-ci (https://github.com/pRizz/opencode-container)" \
2122
--output "${tmp_response}" \
2223
--write-out '%{http_code}' \
2324
"${api_url}"

0 commit comments

Comments
 (0)