mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-10 22:50:32 +00:00
Enable secure mode for cargo-binstall (#9)
`--secure` mode 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 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
7
main.sh
7
main.sh
@@ -88,12 +88,15 @@ cargo_binstall() {
|
|||||||
|
|
||||||
install_cargo_binstall
|
install_cargo_binstall
|
||||||
|
|
||||||
|
# --secure mode 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
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest)
|
latest)
|
||||||
cargo binstall --no-confirm "$tool"
|
cargo binstall --secure --no-confirm "$tool"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
cargo binstall --no-confirm --version "$version" "$tool"
|
cargo binstall --secure --no-confirm --version "$version" "$tool"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user