diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 143b849532e..0b2d988fa8f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -32,6 +32,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Install Go + uses: actions/setup-go@v4 + with: + go-version-file: go.mod + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/go.mod b/go.mod index c3ed52738a5..5966ead8973 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/anchore/syft -go 1.21 - -toolchain go1.21.0 +go 1.21.0 require ( github.com/CycloneDX/cyclonedx-go v0.7.1