diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a3991a0d..9cf2f4cb 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -42,7 +42,7 @@ jobs: - language: python build-mode: none - language: go - build-mode: none + build-mode: manual - language: actions build-mode: none @@ -59,6 +59,12 @@ jobs: kotlin-version: ${{ needs.get-configs.outputs.kotlin-version }} ktlint-version: ${{ needs.get-configs.outputs.ktlint-version }} + - name: Setup Go + if: matrix.language == 'go' + uses: actions/setup-go@v6 + with: + go-version: ${{ needs.get-configs.outputs.go-version }} + - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: @@ -90,6 +96,11 @@ jobs: find "$SRC" -name '*.kt' -type f -print0 \ | xargs -0 kotlinc -classpath "$LIBS/jna.jar:$LIBS/gson.jar" -d "$RUNNER_TEMP/jvm-classes" -nowarn + - name: Compile Go bindings for CodeQL extraction + if: matrix.language == 'go' + working-directory: ${{ needs.get-configs.outputs.working-dir }}/bindings-go/go + run: go build ./... + - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 with: