Skip to content

Commit

Permalink
🧹 update CI go and linter (#1172)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev authored Sep 18, 2024
1 parent 3c263ff commit 206733e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/env
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion cmd/mondoo-operator/operator/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package operator

import (
"errors"
"fmt"

"github.com/go-logr/logr"
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 206733e

Please sign in to comment.