This is an automated email from the ASF dual-hosted git repository. derrickaw pushed a commit to branch 20260610_goCodeQLFix in repository https://gitbox.apache.org/repos/asf/beam.git
commit 791b412c4d945bb711b3f804bf02aa4de663cd64 Author: Derrick Williams <[email protected]> AuthorDate: Wed Jun 10 21:03:46 2026 +0000 Turn to manual build for Go --- .github/workflows/codeql.yml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 95d128d5365..1db93327255 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -55,7 +55,7 @@ jobs: # - language: c-cpp # build-mode: autobuild - language: go - build-mode: autobuild + build-mode: manual - language: java-kotlin build-mode: autobuild - language: javascript-typescript @@ -76,6 +76,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v6 + - name: Set up Go + if: matrix.language == 'go' + uses: actions/setup-go@v6 + with: + go-version-file: 'sdks/go.mod' + # Add any setup steps before running the `github/codeql-action/init` action. # This includes steps like installing compilers or runtimes (`actions/setup-node` # or others). This is typically only required for manual builds. @@ -105,12 +111,23 @@ jobs: if: matrix.build-mode == 'manual' shell: bash run: | - echo 'If you are using a "manual" build mode for one or more of the' \ - 'languages you are analyzing, replace this with the commands to build' \ - 'your code, for example:' - echo ' make bootstrap' - echo ' make release' - exit 1 + if [ "${{ matrix.language }}" = "go" ]; then + echo "Building sdks module..." + go build -C sdks ./... + + echo "Building playground/backend module..." + go build -C playground/backend ./... + + echo "Building learning/katas/go module..." + go mod tidy -C learning/katas/go + go build -C learning/katas/go ./... + + echo "Building learning/tour-of-beam/backend module..." + go build -C learning/tour-of-beam/backend ./cmd/... ./internal/... ./playground_api/... + else + echo "No manual build steps defined for ${{ matrix.language }}" + exit 1 + fi - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4
