Skip to content

Commit e8ae0e1

Browse files
authored
fix: update installation method for cosign to dnf
1 parent d8f98e7 commit e8ae0e1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

build/almalinux-8/include/install-build-dependencies.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ cp -a /include/ssh-env-config.sh /usr/local/bin
149149
# COSIGN_VERSION=$(curl https://api.github.com/repos/sigstore/cosign/releases/latest | grep tag_name | cut -d : -f2 | tr -d "v\", ")
150150
COSIGN_VERSION=2.6.1
151151
echo "✍️ Installing cosign version ${COSIGN_VERSION}"
152-
curl -O -L "https://github.com/sigstore/cosign/releases/download/v${COSIGN_VERSION}/cosign-${COSIGN_VERSION}-1.$(arch).rpm"
153-
rpm -ivh "cosign-${COSIGN_VERSION}-1.x86_64.rpm" && rm "cosign-${COSIGN_VERSION}-1.$(arch).rpm"
152+
dnf install -y "https://github.com/sigstore/cosign/releases/download/v${COSIGN_VERSION}/cosign-${COSIGN_VERSION}-1.$(arch).rpm"
154153

155154
TRIVY_VERSION=$(curl -sSL https://api.github.com/repos/aquasecurity/trivy/releases/latest | jq -re '.tag_name|sub("^v";"")')
156155
KUBECTL_VERSION="1.31.1"

0 commit comments

Comments
 (0)