File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,14 +7,17 @@ PLATFORM=$("$GITHUB_ACTION_PATH/../.scripts/actions/get_platform.sh")
77ARCH=$( " $GITHUB_ACTION_PATH /../.scripts/actions/get_architecture.sh" )
88
99FILENAME=" helm-${HELM_VERSION} -${PLATFORM} -${ARCH} .tar.gz"
10+ VERIFY_SIGNATURE=" ${VERIFY_SIGNATURE:- true} "
1011
1112echo " ::group::Install helm"
1213mkdir /tmp/helm
1314curl -fsSL -o /tmp/helm/helm.tar.gz " https://get.helm.sh/${FILENAME} "
14- curl -fsSL -o /tmp/helm/helm.tar.gz.asc " https://github.com/helm/helm/releases/download/${HELM_VERSION} /${FILENAME} .asc"
1515
16- curl https://keybase.io/mattfarina/pgp_keys.asc | gpg --import
17- gpg --verify /tmp/helm/helm.tar.gz.asc /tmp/helm/helm.tar.gz
16+ if [[ " $VERIFY_SIGNATURE " == " true" ]]; then
17+ curl -fsSL -o /tmp/helm/helm.tar.gz.asc " https://github.com/helm/helm/releases/download/${HELM_VERSION} /${FILENAME} .asc"
18+ curl https://keybase.io/mattfarina/pgp_keys.asc | gpg --import
19+ gpg --verify /tmp/helm/helm.tar.gz.asc /tmp/helm/helm.tar.gz
20+ fi
1821
1922tar --directory=" /tmp/helm" --strip-components=1 -zxvf /tmp/helm/helm.tar.gz " ${PLATFORM} -${ARCH} "
2023# Overwrite the existing binary
Original file line number Diff line number Diff line change 3535 env :
3636 HELM_VERSION : ${{ inputs.helm-version }}
3737 GITHUB_DEBUG : ${{ runner.debug }}
38+ # The signature is expired since a couple of years...
39+ VERIFY_SIGNATURE : " false"
3840 shell : bash
3941 run : " $GITHUB_ACTION_PATH/../.scripts/actions/install_helm.sh"
You can’t perform that action at this time.
0 commit comments