Skip to content

Commit fbb7c38

Browse files
committed
Update codeql config to include correct build target for kubebuilder v4.
ai-assisted=yes
1 parent 687774d commit fbb7c38

2 files changed

Lines changed: 8 additions & 15 deletions

File tree

.github/codeql/codeql-config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
paths-ignore:
2+
- docs/**
3+
- "*.md"
4+
- LICENSE.txt
5+
- PROJECT

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,14 @@ jobs:
3535
uses: github/codeql-action/init@v4
3636
with:
3737
languages: go
38+
config-file: .github/codeql/codeql-config.yml
3839
# If you wish to specify custom queries, you can do so here or in a config file.
3940
# By default, queries listed here will override any specified in a config file.
4041
# Prefix the list here with "+" to use these queries and those in the config file.
4142
# queries: ./path/to/local/query, your-org/your-repo/queries@main
4243

43-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
44-
# If this step fails, then you should remove it and run the build manually (see below)
45-
- name: Autobuild
46-
uses: github/codeql-action/autobuild@v4
47-
48-
# ℹ️ Command-line programs to run using the OS shell.
49-
# 📚 https://git.io/JvXDl
50-
51-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
52-
# and modify them (or add more) to build your code if your project
53-
# uses a compiled language
54-
55-
#- run: |
56-
# make bootstrap
57-
# make release
44+
- name: Build for CodeQL
45+
run: go build -o manager ./cmd
5846

5947
- name: Perform CodeQL Analysis
6048
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)