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
This commit is contained in:
Daniel Kimsey 2023-03-30 13:38:50 -05:00 committed by GitHub
parent b4d0de386e
commit e9628c5eba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
go test -race -timeout=30m -v ./tfexec/internal/e2etest