Update Go build steps in GitHub workflow

The build steps in the CodeQL action of the GitHub workflow have been updated. Instead of using the 'apt-get' command, the 'go mod tidy', 'go mod download', and 'go mod verify' are now used. This improves the building process by organizing and verifying the dependencies.
This commit is contained in:
Winni Neessen 2024-03-17 19:31:10 +01:00
parent 31cf70c678
commit 6f25663957
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -83,7 +83,9 @@ jobs:
- run: |
echo "Build Application using Go"
apt-get update; apt-get -y install go
go mod tidy
go mod download
go mod verify
go build -ldflags '-s -w' -o apg github.com/wneessen/apg-go/cmd/apg
- name: Perform CodeQL Analysis