From 6f256639574eb5c612b20ad4a8c56e89bd15c118 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sun, 17 Mar 2024 19:31:10 +0100 Subject: [PATCH] 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. --- .github/workflows/codeql.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 842daa7..741586c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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