From a37e8fc2233e2e4d3c03c3e0d04b363ff65ea389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar=20Rubio?= Date: Sun, 18 May 2025 13:07:20 +0200 Subject: [PATCH] Safer GH action execution for sh shells MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Mondéjar Rubio --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 3c3b1663..3567031f 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,9 @@ runs: - name: Install cargo-binstall if: runner.os != 'Windows' shell: sh - run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash + run: | + set -euo pipefail + curl --retry 10 -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash - name: Install cargo-binstall if: runner.os == 'Windows' run: Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content