File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 INPUT_CHECKSUM : ${{ inputs.checksum }}
5050 INPUT_FALLBACK : ${{ inputs.fallback }}
5151 DEFAULT_GITHUB_TOKEN : ${{ github.token }}
52+ ACTION_USER_AGENT : ${{ github.action_repository }} (${{ github.action_ref }})
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ read_manifest() {
220220 # TODO: don't hardcode tool name and use 'immediate_yank_reflection' field in base manifest.
221221 case " ${tool} " in
222222 cargo-nextest | nextest)
223- crate_info=$( curl --proto ' =https' --tlsv1.2 -fsSL --retry 10 " https://crates.io/api/v1/crates/${rust_crate} " || true)
223+ crate_info=$( curl -v --user-agent " ${ACTION_USER_AGENT} " - -proto ' =https' --tlsv1.2 -fsSL --retry 10 " https://crates.io/api/v1/crates/${rust_crate} " || true)
224224 if [[ -n " ${crate_info} " ]]; then
225225 while true ; do
226226 yanked=$( jq -r " .versions[] | select(.num == \" ${exact_version} \" ) | .yanked" <<< " ${crate_info}" )
You can’t perform that action at this time.
0 commit comments