From 27606c30b5affb6cc62c101e853919b99dd2dd8b Mon Sep 17 00:00:00 2001 From: jm20122012 Date: Wed, 3 Jul 2024 14:05:58 -0600 Subject: [PATCH] Updated codeql workflow --- .github/workflows/codeql-analysis.yml | 9 ++++++++- controller/go.mod | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b0ba84a..af60a9a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -43,8 +43,15 @@ jobs: with: go-version: '1.22.4' + - name: Tidy Go modules + run: | + cd controller + go mod tidy + - name: Build Go code - run: go build -o main ./controller/cmd/controllerservice + run: | + cd controller + go build -o main ./cmd/controllerservice - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/controller/go.mod b/controller/go.mod index aa50a1a..ef13059 100644 --- a/controller/go.mod +++ b/controller/go.mod @@ -2,4 +2,4 @@ module sprinkler-controller-service go 1.22.4 -require github.com/joho/godotenv v1.5.1 // indirect +require github.com/joho/godotenv v1.5.1