Skip to content

Commit

Permalink
Explicit Go build for CodeQL
Browse files Browse the repository at this point in the history
The autobuild ran make instead of building the test server.
  • Loading branch information
airtower-luna committed Mar 10, 2024
1 parent 5075998 commit 99aac85
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'go', 'javascript', 'python' ]
language: [ 'javascript', 'python' ]

steps:
- name: Checkout repository
Expand All @@ -40,3 +40,29 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

jobs:
go:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: go

- name: Build test server
working-directory: testserver
run: go build
env:
CGO_ENABLED: '0'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit 99aac85

Please sign in to comment.