diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 10fffc5555..f049ef6410 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -19,6 +19,7 @@ on: branches: [ "swo" ] schedule: - cron: '37 10 * * 2' + workflow_dispatch: permissions: contents: read @@ -76,7 +77,7 @@ jobs: with: working-directory: ${{ matrix.target.directory }} # There are no array literals in GHA that is why we need to use fromJson. - if: ${{ !contains(fromJson('["java", "csharp"]'), matrix.target.language) }} + if: ${{ !contains(fromJson('["go"]'), matrix.target.language) }} # â„šī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -88,6 +89,11 @@ jobs: # echo "Run, Build Application using script" # ./location_of_script_within_repo/buildscript.sh + - name: build go + run: make build + working-directory: ${{ matrix.target.directory }} + if: ${{ matrix.target.language == 'go' }} + - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5 with: diff --git a/collector/internal/tools/go.sum b/collector/internal/tools/go.sum index 8de0ec2455..50e1055a93 100644 --- a/collector/internal/tools/go.sum +++ b/collector/internal/tools/go.sum @@ -138,6 +138,7 @@ github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5P github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/ckaznocha/intrange v0.3.0 h1:VqnxtK32pxgkhJgYQEeOArVidIPg+ahLP7WBOXZd5ZY= github.com/ckaznocha/intrange v0.3.0/go.mod h1:+I/o2d2A1FBHgGELbGxzIcyd3/9l9DuwjM8FsbSS3Lo= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8= github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=