CEL Support #1288
code-style.yaml
on: pull_request
Lint
28s
Matrix: Auto-format and Check
Annotations
7 errors and 8 warnings
Auto-format and Check (goimports):
controllers/auth_config_controller.go#L1
Please run goimports .
diff --git a/controllers/auth_config_controller.go b/controllers/auth_config_controller.go
index e5cf0b9..4b04e09 100644
--- a/controllers/auth_config_controller.go
+++ b/controllers/auth_config_controller.go
@@ -19,10 +19,11 @@ package controllers
import (
"context"
"fmt"
- "github.com/kuadrant/authorino/pkg/expressions"
"sort"
"sync"
+ "github.com/kuadrant/authorino/pkg/expressions"
+
api "github.com/kuadrant/authorino/api/v1beta2"
"github.com/kuadrant/authorino/pkg/auth"
"github.com/kuadrant/authorino/pkg/evaluators"
|
Auto-format and Check (goimports):
pkg/evaluators/authorization/kubernetes_authz.go#L1
Please run goimports .
diff --git a/pkg/evaluators/authorization/kubernetes_authz.go b/pkg/evaluators/authorization/kubernetes_authz.go
index 6f9aa70..2b72138 100644
--- a/pkg/evaluators/authorization/kubernetes_authz.go
+++ b/pkg/evaluators/authorization/kubernetes_authz.go
@@ -3,9 +3,10 @@ package authorization
import (
gocontext "context"
"fmt"
- "github.com/kuadrant/authorino/pkg/expressions"
"strings"
+ "github.com/kuadrant/authorino/pkg/expressions"
+
"github.com/kuadrant/authorino/pkg/auth"
"github.com/kuadrant/authorino/pkg/context"
"github.com/kuadrant/authorino/pkg/log"
|
Auto-format and Check (goimports):
pkg/evaluators/authorization/kubernetes_authz_test.go#L1
Please run goimports .
diff --git a/pkg/evaluators/authorization/kubernetes_authz_test.go b/pkg/evaluators/authorization/kubernetes_authz_test.go
index 4fa1b57..001c123 100644
--- a/pkg/evaluators/authorization/kubernetes_authz_test.go
+++ b/pkg/evaluators/authorization/kubernetes_authz_test.go
@@ -2,9 +2,10 @@ package authorization
import (
"context"
- "github.com/kuadrant/authorino/pkg/expressions"
"testing"
+ "github.com/kuadrant/authorino/pkg/expressions"
+
mock_auth "github.com/kuadrant/authorino/pkg/auth/mocks"
"github.com/kuadrant/authorino/pkg/json"
|
Auto-format and Check (goimports):
pkg/evaluators/metadata/generic_http.go#L1
Please run goimports .
diff --git a/pkg/evaluators/metadata/generic_http.go b/pkg/evaluators/metadata/generic_http.go
index 5e4be20..09b8145 100644
--- a/pkg/evaluators/metadata/generic_http.go
+++ b/pkg/evaluators/metadata/generic_http.go
@@ -5,12 +5,13 @@ import (
gocontext "context"
gojson "encoding/json"
"fmt"
- "github.com/kuadrant/authorino/pkg/expressions"
"io"
"net/http"
"net/url"
"strings"
+ "github.com/kuadrant/authorino/pkg/expressions"
+
"github.com/kuadrant/authorino/pkg/auth"
"github.com/kuadrant/authorino/pkg/context"
"github.com/kuadrant/authorino/pkg/json"
|
Auto-format and Check (goimports):
pkg/evaluators/response/plain_test.go#L1
Please run goimports .
diff --git a/pkg/evaluators/response/plain_test.go b/pkg/evaluators/response/plain_test.go
index 83ca243..2361fc4 100644
--- a/pkg/evaluators/response/plain_test.go
+++ b/pkg/evaluators/response/plain_test.go
@@ -3,9 +3,10 @@ package response
import (
"context"
"fmt"
- "github.com/kuadrant/authorino/pkg/json"
"testing"
+ "github.com/kuadrant/authorino/pkg/json"
+
mock_auth "github.com/kuadrant/authorino/pkg/auth/mocks"
"gotest.tools/assert"
|
Auto-format and Check (goimports):
pkg/json/json.go#L1
Please run goimports .
diff --git a/pkg/json/json.go b/pkg/json/json.go
index 1011b6d..738b102 100644
--- a/pkg/json/json.go
+++ b/pkg/json/json.go
@@ -4,7 +4,6 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
- "github.com/kuadrant/authorino/pkg/expressions"
"io"
"mime"
"net/http"
@@ -12,6 +11,8 @@ import (
"strings"
"unicode"
+ "github.com/kuadrant/authorino/pkg/expressions"
+
"github.com/tidwall/gjson"
)
|
Auto-format and Check (goimports)
Process completed with exit code 1.
|
Auto-format and Check (gofmt)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Auto-format and Check (gofmt)
Restore cache failed: Dependencies file is not found in /home/runner/work/authorino/authorino. Supported file pattern: go.sum
|
Auto-format and Check (goimports)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Auto-format and Check (goimports)
Restore cache failed: Dependencies file is not found in /home/runner/work/authorino/authorino. Supported file pattern: go.sum
|
Lint
The following actions uses node12 which is deprecated and will be forced to run on node16: andstor/file-existence-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3, andstor/file-existence-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Lint
Restore cache failed: Dependencies file is not found in /home/runner/work/authorino/authorino. Supported file pattern: go.sum
|
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|