Skip to content

Commit

Permalink
build: update go to 1.23
Browse files Browse the repository at this point in the history
Also pin open-policy-agent/opa according to aquasecurity/trivy#7427
  • Loading branch information
shino committed Sep 30, 2024
1 parent 2944887 commit db404a1
Show file tree
Hide file tree
Showing 26 changed files with 178 additions and 176 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.54
version: v1.61
args: --timeout=10m

# Optional: working directory, useful for monorepos
# working-directory: somedir

Expand Down
10 changes: 5 additions & 5 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package config
import (
"testing"

. "github.com/future-architect/vuls/constant"
"github.com/future-architect/vuls/constant"
)

func TestDistro_MajorVersion(t *testing.T) {
Expand All @@ -13,28 +13,28 @@ func TestDistro_MajorVersion(t *testing.T) {
}{
{
in: Distro{
Family: Amazon,
Family: constant.Amazon,
Release: "2022 (Amazon Linux)",
},
out: 2022,
},
{
in: Distro{
Family: Amazon,
Family: constant.Amazon,
Release: "2 (2017.12)",
},
out: 2,
},
{
in: Distro{
Family: Amazon,
Family: constant.Amazon,
Release: "2017.12",
},
out: 1,
},
{
in: Distro{
Family: CentOS,
Family: constant.CentOS,
Release: "7.10",
},
out: 7,
Expand Down
Loading

0 comments on commit db404a1

Please sign in to comment.