Compare commits

..

3 Commits

Author SHA1 Message Date
Taiki Endo
4a06140391 Release 2.46.0 2024-12-05 02:29:26 +09:00
Taiki Endo
ffd430fe64 Update changelog 2024-12-05 02:29:05 +09:00
Taiki Endo
0139dfdb65 Set GITHUB_TOKEN for cargo-binstall by default (#556)
Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
2024-12-04 23:02:01 +09:00
3 changed files with 11 additions and 1 deletions

View File

@@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.46.0] - 2024-12-04
- Improve robustness of `cargo-binstall` fallback. ([#556](https://github.com/taiki-e/install-action/pull/556))
## [2.45.15] - 2024-12-03
- Update `typos@latest` to 1.28.2.
@@ -3158,7 +3162,8 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.45.15...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.46.0...HEAD
[2.46.0]: https://github.com/taiki-e/install-action/compare/v2.45.15...v2.46.0
[2.45.15]: https://github.com/taiki-e/install-action/compare/v2.45.14...v2.45.15
[2.45.14]: https://github.com/taiki-e/install-action/compare/v2.45.13...v2.45.14
[2.45.13]: https://github.com/taiki-e/install-action/compare/v2.45.12...v2.45.13

View File

@@ -46,6 +46,7 @@ runs:
INPUT_TOOL: ${{ inputs.tool }}
INPUT_CHECKSUM: ${{ inputs.checksum }}
INPUT_FALLBACK: ${{ inputs.fallback }}
DEFAULT_GITHUB_TOKEN: ${{ github.token }}
if: runner.os != 'Windows'
- run: bash --noprofile --norc "${GITHUB_ACTION_PATH:?}/main.sh"
shell: bash
@@ -53,4 +54,5 @@ runs:
INPUT_TOOL: ${{ inputs.tool }}
INPUT_CHECKSUM: ${{ inputs.checksum }}
INPUT_FALLBACK: ${{ inputs.fallback }}
DEFAULT_GITHUB_TOKEN: ${{ github.token }}
if: runner.os == 'Windows'

View File

@@ -826,6 +826,9 @@ if [[ ${#unsupported_tools[@]} -gt 0 ]]; then
info "install-action does not support ${unsupported_tools[*]}; fallback to cargo-binstall"
IFS=$'\n\t'
install_cargo_binstall
if [[ -z "${GITHUB_TOKEN:-}" ]] && [[ -n "${DEFAULT_GITHUB_TOKEN:-}" ]]; then
export GITHUB_TOKEN="${DEFAULT_GITHUB_TOKEN}"
fi
# By default, cargo-binstall enforce downloads over secure transports only.
# As a result, http will be disabled, and it will also set
# min tls version to be 1.2