Include user-agent header in requests to crates.io

Based on https://github.com/taiki-e/cache-cargo-install-action/commit/3f363be7b68439d8d6299b71308c21e694c96d08 by Joe Birr-Pixton.

Fix the underlying cause of https://github.com/taiki-e/install-action/issues/1005.

Co-authored-by: Joe Birr-Pixton <jpixton@gmail.com>
This commit is contained in:
Taiki Endo
2025-06-18 22:55:40 +09:00
co-authored by Joe Birr-Pixton
parent d12e869b89
commit d92059b082
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -49,3 +49,4 @@ runs:
INPUT_CHECKSUM: ${{ inputs.checksum }}
INPUT_FALLBACK: ${{ inputs.fallback }}
DEFAULT_GITHUB_TOKEN: ${{ github.token }}
ACTION_USER_AGENT: ${{ github.action_repository }} (${{ github.action_ref }})