From 4d251c6bd676e54df98928f080ee5b4f1550510f Mon Sep 17 00:00:00 2001 From: Chris Harris Date: Wed, 21 Jan 2026 19:36:48 +0000 Subject: [PATCH] CGO_ENABLED should be a number CGO_ENABLED should be 0 or 1, use number to constrain values. Signed-off-by: Chris Harris --- .github/workflows/go-build-release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go-build-release.yml b/.github/workflows/go-build-release.yml index df510d2..6d51454 100644 --- a/.github/workflows/go-build-release.yml +++ b/.github/workflows/go-build-release.yml @@ -22,8 +22,7 @@ on: cgo-enabled: description: 'Set CGO_ENABLED environment variable' required: false - type: string - default: '' + type: number additional-env-vars: description: 'Additional environment variables to set (KEY=value format, one per line)' required: false @@ -116,7 +115,7 @@ jobs: } >> "$GITHUB_ENV" - name: Set CGO_ENABLED if specified - if: ${{ inputs.cgo-enabled != '' }} + if: ${{ inputs.cgo-enabled != null }} run: echo "CGO_ENABLED=${{ inputs.cgo-enabled }}" >> "$GITHUB_ENV" - name: Set additional environment variables