From 3842d28e9007215b2598cc624518fbfc7e109d41 Mon Sep 17 00:00:00 2001 From: Christopher Angelo Phillips <32073428+spiffcs@users.noreply.github.com> Date: Thu, 7 Sep 2023 15:54:42 -0400 Subject: [PATCH] fix: update codeql-analysis for go 1.21 (#2108) * fix: update codeql-analysis for go 1.21 Signed-off-by: Christopher Phillips * nit: remove comment Signed-off-by: Christopher Phillips --------- Signed-off-by: Christopher Phillips --- .github/workflows/codeql-analysis.yml | 5 +++++ go.mod | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) 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