Skip to content

Commit 67dc1a0

Browse files
PaulusParssinenCopilotdarrenge
authored
Check helm-docs binary release digest in CI (#1468)
* Check helm-docs binary release digest in CI * Use FILENAME variable in tar command Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: darrenge <darrenge@microsoft.com>
1 parent 94f9e7d commit 67dc1a0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/helm-chart.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,17 @@ jobs:
3535
- name: Install helm-docs
3636
env:
3737
HELM_DOCS_VERSION: "1.14.2"
38+
HELM_DOCS_SHA256: "a8cf72ada34fad93285ba2a452b38bdc5bd52cc9a571236244ec31022928d6cc"
3839
run: |
40+
set -euo pipefail
41+
3942
cd /tmp
40-
wget https://github.com/norwoodj/helm-docs/releases/download/v"${HELM_DOCS_VERSION}"/helm-docs_"${HELM_DOCS_VERSION}"_Linux_x86_64.tar.gz
41-
tar -xvf helm-docs_"${HELM_DOCS_VERSION}"_Linux_x86_64.tar.gz
43+
FILENAME="helm-docs_${HELM_DOCS_VERSION}_Linux_x86_64.tar.gz"
44+
wget "https://github.com/norwoodj/helm-docs/releases/download/v${HELM_DOCS_VERSION}/${FILENAME}"
45+
46+
echo "${HELM_DOCS_SHA256} ${FILENAME}" | sha256sum -c -
47+
48+
tar -xvf "${FILENAME}"
4249
sudo mv helm-docs /usr/local/bin
4350
4451
- name: Set helm chart appVersion from Version.props

0 commit comments

Comments
 (0)