File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ set -o errexit
44set -o nounset
55set -o pipefail
66
7- DEFAULT_TOKEN=
87DEFAULT_CHART_TESTING_VERSION=v3.8.0
98DEFAULT_YAMLLINT_VERSION=1.27.1
109DEFAULT_YAMALE_VERSION=3.0.4
2019}
2120
2221main () {
23- local token=" $DEFAULT_TOKEN "
22+ local token=" "
2423 local version=" $DEFAULT_CHART_TESTING_VERSION "
2524 local yamllint_version=" $DEFAULT_YAMLLINT_VERSION "
2625 local yamale_version=" $DEFAULT_YAMALE_VERSION "
@@ -108,12 +107,11 @@ install_chart_testing() {
108107 CT_CERT=https://github.com/helm/chart-testing/releases/download/$version /chart-testing_${version# v} _linux_$arch .tar.gz.pem
109108 CT_SIG=https://github.com/helm/chart-testing/releases/download/$version /chart-testing_${version# v} _linux_$arch .tar.gz.sig
110109
111- AUTH_HEADER=" "
112110 if [ ! -z " $token " ]; then
113- AUTH_HEADER= " --header \ " Authorization: Bearer ${token} \" "
111+ auth+=( --header " Authorization: Bearer ${token} " )
114112 fi
115113
116- curl --retry 5 --retry-delay 1 -sSLo $AUTH_HEADER ct.tar.gz " https://github.com/helm/chart-testing/releases/download/$version /chart-testing_${version# v} _linux_$arch .tar.gz"
114+ curl " ${auth[@]} " --retry 5 --retry-delay 1 -sSLo ct.tar.gz " https://github.com/helm/chart-testing/releases/download/$version /chart-testing_${version# v} _linux_$arch .tar.gz"
117115 cosign verify-blob --certificate $CT_CERT --signature $CT_SIG \
118116 --certificate-identity " https://github.com/helm/chart-testing/.github/workflows/release.yaml@refs/heads/main" \
119117 --certificate-oidc-issuer " https://token.actions.githubusercontent.com" ct.tar.gz
You can’t perform that action at this time.
0 commit comments