Skip to content

Commit 273d3a4

Browse files
committed
[chore] use explicit build for codeql
1 parent bc97061 commit 273d3a4

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,24 @@ jobs:
5555
# Prefix the list here with "+" to use these queries and those in the config file.
5656
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5757

58-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
59-
# If this step fails, then you should remove it and run the build manually (see below)
60-
- name: Autobuild
61-
uses: github/codeql-action/autobuild@v3
62-
63-
# ℹ️ Command-line programs to run using the OS shell.
64-
# 📚 https://git.io/JvXDl
65-
66-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
67-
# and modify them (or add more) to build your code if your project
68-
# uses a compiled language
69-
70-
#- run: |
71-
# make bootstrap
72-
# make release
58+
# Build all Go modules in the project for CodeQL analysis
59+
- name: Build Go modules
60+
run: |
61+
# Build main module
62+
go build ./...
63+
64+
# Build api module
65+
cd api
66+
go build ./...
67+
cd ..
68+
69+
# Build properties module
70+
cd properties
71+
go build ./...
72+
cd ..
73+
74+
# Build main binary
75+
go build -o bin/manager main.go
7376
7477
- name: Perform CodeQL Analysis
7578
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)