From e9628c5ebae17c285b093e48ee13df91d3645363 Mon Sep 17 00:00:00 2001 From: Daniel Kimsey <90741+dekimsey@users.noreply.github.com> Date: Thu, 30 Mar 2023 13:38:50 -0500 Subject: [PATCH] ci: Correctly pass cgo_enabled=0 flag This flag was not being passed correctly, it caused the value to be read as unset. Which effectively defaults to enabled. Related to incident 230330-1 --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 91a9436089..d4d9add01d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,7 +101,7 @@ jobs: package-name: ${{ needs.get-product-version.outputs.pkg-name }} product-version: ${{ needs.get-product-version.outputs.product-version }} ld-flags: ${{ needs.get-product-version.outputs.go-ldflags }} - cgo-enabled: ${{ matrix.cgo }} + cgo-enabled: ${{ matrix.cgo-enabled }} runson: ${{ matrix.runson }} secrets: inherit strategy: @@ -317,4 +317,4 @@ jobs: unzip terraform_${FULL_RELEASE_VERSION}_linux_amd64.zip export TFEXEC_E2ETEST_TERRAFORM_PATH="$(pwd)/terraform" cd terraform-exec - go test -race -timeout=30m -v ./tfexec/internal/e2etest \ No newline at end of file + go test -race -timeout=30m -v ./tfexec/internal/e2etest