Skip to content

Commit e19d099

Browse files
committed
chore: fix codeql build
Signed-off-by: Christian Stewart <christian@aperture.us>
1 parent 33652a0 commit e19d099

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
language: [ 'go' ]
28+
go: ['1.22']
2829
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
2930
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3031

@@ -37,33 +38,19 @@ jobs:
3738
- name: Checkout repository
3839
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3940

40-
# Initializes the CodeQL tools for scanning.
41+
- name: Setup Go ${{ matrix.go }}
42+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
43+
with:
44+
go-version: ${{ matrix.go }}
45+
4146
- name: Initialize CodeQL
4247
uses: github/codeql-action/init@4355270be187e1b672a7a1c7c7bae5afdc1ab94a # v3.24.10
4348
with:
4449
languages: ${{ matrix.language }}
45-
# If you wish to specify custom queries, you can do so here or in a config file.
46-
# By default, queries listed here will override any specified in a config file.
47-
# Prefix the list here with "+" to use these queries and those in the config file.
48-
49-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
50-
# queries: security-extended,security-and-quality
5150

5251

53-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54-
# If this step fails, then you should remove it and run the build manually (see below)
55-
#- name: Autobuild
56-
# uses: github/codeql-action/autobuild@4355270be187e1b672a7a1c7c7bae5afdc1ab94a # v3.24.10
57-
58-
# ℹ️ Command-line programs to run using the OS shell.
59-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
60-
61-
# If the Autobuild fails above, remove it and uncomment the following three lines.
62-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
63-
64-
- name: Build Go
65-
run: |
66-
go build -v
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@4355270be187e1b672a7a1c7c7bae5afdc1ab94a # v3.24.10
6754

6855
- name: Perform CodeQL Analysis
6956
uses: github/codeql-action/analyze@4355270be187e1b672a7a1c7c7bae5afdc1ab94a # v3.24.10

0 commit comments

Comments
 (0)