diff --git a/.github/env b/.github/env index 1fdd0874..dce937c0 100644 --- a/.github/env +++ b/.github/env @@ -1,4 +1,4 @@ -golang-version=1.22.2 +golang-version=1.23.1 operator-sdk-version=v1.33.0 MONDOO_ORG_MRN=//captain.api.mondoo.app/organizations/mondoo-operator-testing MONDOO_GQL_ENDPOINT=https://api.mondoo.com/query diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index eb66ba34..1d753c16 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -27,7 +27,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.54 + version: latest args: --timeout=20m0s license-check: diff --git a/cmd/mondoo-operator/operator/cmd.go b/cmd/mondoo-operator/operator/cmd.go index 7bce81b8..ce2758cb 100644 --- a/cmd/mondoo-operator/operator/cmd.go +++ b/cmd/mondoo-operator/operator/cmd.go @@ -4,6 +4,7 @@ package operator import ( + "errors" "fmt" "github.com/go-logr/logr" @@ -103,7 +104,7 @@ func init() { if !passed { msg := "required API(s) not found" setupLog.Info(msg) - return fmt.Errorf(msg) + return errors.New(msg) } isOpenShift, err := k8s.IsOpenshift()