Skip to content

Commit 6299c1f

Browse files
committed
Upgrade to use codeql v3 since deprecation and custom build for go
1 parent d805f95 commit 6299c1f

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,24 @@ jobs:
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v2
46+
uses: github/codeql-action/init@v3
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
5050
# By default, queries listed here will override any specified in a config file.
5151
# Prefix the list here with "+" to use these queries and those in the config file.
5252
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5353

54-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55-
# If this step fails, then you should remove it and run the build manually (see below).
54+
# Manual build for Go to avoid dependency issues
55+
- name: Build Go code
56+
if: matrix.language == 'go'
57+
run: |
58+
go build -v $(go list ./... | grep -v trace_forwarder) || true
59+
60+
# Autobuild for other languages
5661
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v2
62+
if: matrix.language != 'go'
63+
uses: github/codeql-action/autobuild@v3
5864

5965
# ℹ️ Command-line programs to run using the OS shell.
6066
# 📚 https://git.io/JvXDl
@@ -68,4 +74,4 @@ jobs:
6874
# make release
6975

7076
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v2
77+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)