diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 71886119a..ffa46f641 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -96,7 +96,7 @@ jobs: - name: Run Gosec Security Scanner run: | export PATH=$PATH:$(go env GOPATH)/bin - go install github.com/securego/gosec/v2/cmd/gosec@v2.20.0 + go install github.com/securego/gosec/v2/cmd/gosec@v2.22.7 bash ./run_gosec.sh if [[ $? != 0 ]] then diff --git a/generator/go.mod b/generator/go.mod index 09512286e..6a13fe322 100644 --- a/generator/go.mod +++ b/generator/go.mod @@ -1,6 +1,6 @@ module github.com/devfile/api/generator -go 1.22 +go 1.24 require ( github.com/coreos/go-semver v0.3.1 diff --git a/go.mod b/go.mod index 15aa98e17..012339b54 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/devfile/api/v2 -go 1.22.0 +go 1.24 require ( github.com/ghodss/yaml v1.0.0 diff --git a/run_gosec.sh b/run_gosec.sh index 2032163bc..805cedd62 100755 --- a/run_gosec.sh +++ b/run_gosec.sh @@ -19,7 +19,7 @@ if ! command -v gosec 2> /dev/null then - echo "error gosec must be installed with this command: go install github.com/securego/gosec/v2/cmd/gosec@v2.14.0" && exit 1 + echo "error gosec must be installed with this command: go install github.com/securego/gosec/v2/cmd/gosec@v2.22.7" && exit 1 fi gosec -no-fail -fmt=sarif -out=gosec.sarif -exclude-dir test -exclude-dir generator ./... diff --git a/test/v200/utils/api/test_utils.go b/test/v200/utils/api/test_utils.go index 86b0874a2..3058b9152 100644 --- a/test/v200/utils/api/test_utils.go +++ b/test/v200/utils/api/test_utils.go @@ -183,7 +183,7 @@ func RunTest(testContent commonUtils.TestContent, t *testing.T) { testDevfile, err := commonUtils.GetDevfile(testContent.FileName, nil, validator) if err != nil { - t.Fatalf(commonUtils.LogMessage(fmt.Sprintf("Error creating devfile : %v", err))) + t.Fatal(commonUtils.LogMessage(fmt.Sprintf("Error creating devfile : %v", err))) } testDevfile.RunTest(testContent, t) diff --git a/test/v200/utils/common/test_utils.go b/test/v200/utils/common/test_utils.go index 684df1add..7ceea856d 100644 --- a/test/v200/utils/common/test_utils.go +++ b/test/v200/utils/common/test_utils.go @@ -368,7 +368,7 @@ func (testDevfile *TestDevfile) RunTest(testContent TestContent, t *testing.T) { err := testDevfile.Validator.WriteAndValidate(testDevfile) if err != nil { - t.Fatalf(LogErrorMessage(fmt.Sprintf("ERROR verifying devfile : %s : %v", testContent.FileName, err))) + t.Fatal(LogErrorMessage(fmt.Sprintf("ERROR verifying devfile : %s : %v", testContent.FileName, err))) } }