Skip to content

Commit a5e7730

Browse files
committed
codeql - manual build steps
1 parent 797a0b5 commit a5e7730

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,25 @@ jobs:
5050

5151
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
5252
# If this step fails, then you should remove it and run the build manually (see below)
53-
- name: Autobuild
54-
uses: github/codeql-action/autobuild@v2
53+
# - name: Autobuild
54+
# uses: github/codeql-action/autobuild@v2
5555

5656
# ℹ️ Command-line programs to run using the OS shell.
5757
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
5858

5959
# If the Autobuild fails above, remove it and uncomment the following three lines.
6060
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6161

62-
# - run: |
63-
# echo "Run, Build Application using script"
64-
# ./location_of_script_within_repo/buildscript.sh
62+
- id: tool_versions
63+
run: echo "go=$(grep golang .tool-versions | awk '{print $2}')" >> $GITHUB_OUTPUT
64+
- uses: actions/setup-go@v5
65+
with:
66+
go-version: ${{ steps.tool_versions.outputs.go }}
67+
- run: |
68+
sudo apt-get update
69+
sudo apt-get install --yes build-essential
70+
- run: |
71+
make local
6572
6673
- name: Perform CodeQL Analysis
6774
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)