Skip to content

CodeQL

CodeQL #564

Triggered via schedule April 1, 2024 17:25
Status Failure
Total duration 2m 12s
Artifacts

code-quality.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 6 warnings
codeql: pkg/kmsca/kmsca.go#L86
emptyStringTest: replace `len(input.CustomerMasterKeySpec) > 0` with `input.CustomerMasterKeySpec != ""` (gocritic)
codeql: pkg/kmsca/kmsca.go#L89
emptyStringTest: replace `len(input.Description) > 0` with `input.Description != ""` (gocritic)
codeql: pkg/kmsca/kmsca.go#L92
emptyStringTest: replace `len(input.Policy) > 0` with `input.Policy != ""` (gocritic)
codeql: pkg/interfaces/kmsclient.go#L6
import 'github.com/aws/aws-sdk-go-v2/service/kms' is not allowed from list 'Main' (depguard)
codeql: main.go#L26
import 'k8s.io/client-go/plugin/pkg/client/auth' is not allowed from list 'Main' (depguard)
codeql: main.go#L27
import 'k8s.io/utils/clock' is not allowed from list 'Main' (depguard)
codeql: main.go#L29
import 'k8s.io/apimachinery/pkg/runtime' is not allowed from list 'Main' (depguard)
codeql: main.go#L30
import 'k8s.io/apimachinery/pkg/util/runtime' is not allowed from list 'Main' (depguard)
codeql: main.go#L31
import 'k8s.io/client-go/kubernetes/scheme' is not allowed from list 'Main' (depguard)
codeql: main.go#L32
import 'sigs.k8s.io/controller-runtime' is not allowed from list 'Main' (depguard)
codeql
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/[email protected], actions/setup-go@v3, github/codeql-action/init@v2, golangci/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
codeql
CodeQL Action v2 will be deprecated on December 5th, 2024. Please update all occurrences of the CodeQL Action in your workflow files to v3. For more information, see https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/
codeql: apis/certmanager/v1alpha1/status_test.go#L22
dot-imports: should not use dot imports (revive)
codeql: pkg/signer/suite_test.go#L22
dot-imports: should not use dot imports (revive)
codeql: pkg/signer/suite_test.go#L23
dot-imports: should not use dot imports (revive)
codeql: main.go#L99
unused-parameter: parameter 'service' seems to be unused, consider removing or renaming it as _ (revive)