Skip to content

Commit ee2926d

Browse files
committed
codeql: also include the Go code
It is not distributed by us, but oh well, for good measure let's just scan it just in case somebody points out that there is Go code in the repository and we don't scan it. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 62f540c commit ee2926d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/codeql.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
language: ["cpp", "javascript"]
20+
language: ["cpp", "javascript", "go"]
2121

2222
steps:
2323
- name: Checkout repository
@@ -29,7 +29,10 @@ jobs:
2929
env:
3030
jobname: codeql
3131

32-
# Initializes the CodeQL tools for scanning.
32+
- uses: actions/setup-go@v5
33+
if: matrix.language == 'go'
34+
35+
# Initializes the CodeQL tools for scanning.
3336
- name: Initialize CodeQL
3437
uses: github/codeql-action/init@v3
3538
with:
@@ -42,6 +45,14 @@ jobs:
4245
cat /proc/cpuinfo
4346
make -j$(nproc)
4447
48+
- name: Build (Go)
49+
if: matrix.language == 'go'
50+
run: |
51+
cat /proc/cpuinfo
52+
cd contrib/persistent-https &&
53+
go mod init git-remote-persistent-https &&
54+
make -j$(nproc)
55+
4556
- name: Perform CodeQL Analysis
4657
uses: github/codeql-action/analyze@v3
4758
with:

0 commit comments

Comments
 (0)