Update Go version and build command in codeql workflow

The codeql workflow script has been updated. Specifically, the Go version in the build command has been changed from 1.22.0 to 1.22.1+auto, to ensure alignment with the Go version specified elsewhere in the project. Additionally, the build command itself has been simplified, utilizing '/usr/bin/env' to consolidate dependencies.
This commit is contained in:
Winni Neessen 2024-03-17 19:59:29 +01:00
parent 4ea41be22f
commit bfc12841ce
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -83,7 +83,7 @@ jobs:
- run: |
echo "Build Application using Go"
go1.22.0 build -ldflags '-s -w' -o apg github.com/wneessen/apg-go/cmd/apg
/usr/bin/env GOTOOLCHAIN=go1.22.1+auto go build -ldflags '-s -w' -o apg github.com/wneessen/apg-go/cmd/apg
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3