This is an automated email from the ASF dual-hosted git repository.

derrickaw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 8051efce4c2 Turn to manual build for Go for CodeQL (#38907)
8051efce4c2 is described below

commit 8051efce4c22fd48003cba6ffc8b86bf7d11b93b
Author: Derrick Williams <[email protected]>
AuthorDate: Wed Jun 10 20:50:14 2026 -0400

    Turn to manual build for Go for CodeQL (#38907)
    
    * Turn to manual build for Go
    
    * update build sequence commands
---
 .github/workflows/codeql.yml | 30 +++++++++++++++++++++++-------
 1 file changed, 23 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 95d128d5365..ce9363b3d66 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,22 @@ 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..."
+          (cd sdks && go build ./...)
+
+          echo "Building playground/backend module..."
+          (cd playground/backend && go build ./...)
+
+          echo "Building learning/katas/go module..."
+          (cd learning/katas/go && go mod tidy && go build ./...)
+
+          echo "Building learning/tour-of-beam/backend module..."
+          (cd learning/tour-of-beam/backend && go build ./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

Reply via email to