From e7026ea849ad443c60a3de6aec6d919d308abfbf Mon Sep 17 00:00:00 2001 From: RichUnibuddy <121948769+RichUnibuddy@users.noreply.github.com> Date: Wed, 11 Sep 2024 17:29:39 +0100 Subject: [PATCH] Allow unauthenticated packages to be installed This is a proposed work around to the expired GPG issue with the GitHub CLI packages - https://github.com/cli/cli/issues/9569. The better fix is to support new keys, but this works and should be relatively safe as we know and mostly trust the source of the deb. It's a big improvement on the orb being broken as it is today. --- src/scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/install.sh b/src/scripts/install.sh index 9d1eac2..59b16aa 100755 --- a/src/scripts/install.sh +++ b/src/scripts/install.sh @@ -52,7 +52,7 @@ install_gh_cli() { echo "Installing the GitHub CLI..." if [ "$platform" == "linux_amd64" ]; then - set -x; $sudo apt install ./"$file_path"; set +x + set -x; $sudo apt --allow-unauthenticated install ./"$file_path"; set +x else set -x; $sudo tar -xf ./"$file_path" -C /usr/local/ --strip-components=1; set +x fi