fix: update codeql-analysis for go 1.21 (#2108)

* fix: update codeql-analysis for go 1.21

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* nit: remove comment

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

---------

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
This commit is contained in:
Christopher Angelo Phillips 2023-09-07 15:54:42 -04:00 committed by GitHub
parent 9f22ab6137
commit 3842d28e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -32,6 +32,11 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2

4
go.mod
View File

@ -1,8 +1,6 @@
module github.com/anchore/syft module github.com/anchore/syft
go 1.21 go 1.21.0
toolchain go1.21.0
require ( require (
github.com/CycloneDX/cyclonedx-go v0.7.1 github.com/CycloneDX/cyclonedx-go v0.7.1