Update Go version and simplify build script

The Go version in go.mod has been updated from 1.22 to 1.22.0 to avoid potential compatibility issues. Additionally, the build process in codeql.yml has been simplified by consolidating multiple 'go mod' commands into a single 'go build' command.
This commit is contained in:
Winni Neessen 2024-03-17 19:51:46 +01:00
parent 2691b04e38
commit 4ea41be22f
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D
2 changed files with 2 additions and 5 deletions

View file

@ -83,10 +83,7 @@ jobs:
- run: |
echo "Build Application using Go"
go mod tidy
go mod download
go mod verify
go build -ldflags '-s -w' -o apg github.com/wneessen/apg-go/cmd/apg
go1.22.0 build -ldflags '-s -w' -o apg github.com/wneessen/apg-go/cmd/apg
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

2
go.mod
View file

@ -4,6 +4,6 @@
module github.com/wneessen/apg-go
go 1.22.0
go 1.22
require github.com/wneessen/go-hibp v1.0.6