Skip to content

Fixes bug #1787 non-k8s: KubeArmor panics when not-enabled policy type is received #4521

Fixes bug #1787 non-k8s: KubeArmor panics when not-enabled policy type is received

Fixes bug #1787 non-k8s: KubeArmor panics when not-enabled policy type is received #4521

Triggered via pull request August 12, 2024 06:41
Status Success
Total duration 2m 6s
Artifacts

ci-test-go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 34 warnings
go-vuln
missing go.sum entry for module providing package github.com/golang/protobuf/ptypes/empty (imported by github.com/kubearmor/KubeArmor/protobuf); to add:
go-vuln: protobuf/policy.pb.go#L10
could not import github.com/golang/protobuf/ptypes/empty (invalid package name: "")
go-fmt
The following actions uses Node.js version which is deprecated and will be forced to run on node20: 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/
go-fmt
Restore cache failed: Dependencies file is not found in /home/runner/work/KubeArmor/KubeArmor. Supported file pattern: go.sum
license
Restore cache failed: Some specified paths were not resolved, unable to cache dependencies.
license
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
go-lint-tests
The following actions uses Node.js version which is deprecated and will be forced to run on node20: 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/
go-lint-tests: tests/k8s_env/csp/csp_test.go#L11
should not use dot imports
go-lint-tests: tests/k8s_env/csp/csp_test.go#L10
should not use dot imports
go-lint-tests: tests/k8s_env/visibility/visibility_test.go#L11
should not use dot imports
go-lint-tests: tests/k8s_env/csp/csp_test.go#L12
should not use dot imports
go-lint-tests: tests/k8s_env/visibility/visibility_test.go#L13
should not use dot imports
go-lint-tests: tests/k8s_env/visibility/visibility_test.go#L12
should not use dot imports
go-lint-tests: tests/k8s_env/configmap/kubearmor_config_test.go#L12
should not use dot imports
go-lint-tests: tests/k8s_env/configmap/kubearmor_config_test.go#L11
should not use dot imports
go-lint-tests: tests/k8s_env/configmap/kubearmor_config_test.go#L13
should not use dot imports
go-lint-tests
Restore cache failed: Dependencies file is not found in /home/runner/work/KubeArmor/KubeArmor. Supported file pattern: go.sum
go-vuln
The following actions uses Node.js version which is deprecated and will be forced to run on node20: 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/
go-vuln
Restore cache failed: Dependencies file is not found in /home/runner/work/KubeArmor/KubeArmor. Supported file pattern: go.sum
go-lint
The following actions uses Node.js version which is deprecated and will be forced to run on node20: 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/
go-lint
Restore cache failed: Dependencies file is not found in /home/runner/work/KubeArmor/KubeArmor. Supported file pattern: go.sum
go-lint: KubeArmor/cert/tls.go#L15
exported const SelfCertProvider should have comment (or a comment on this block) or be unexported
go-lint: KubeArmor/policy/policy.go#L17
type name will be used as policy.PolicyServer by other packages, and that stutters; consider calling this Server
go-lint: KubeArmor/cert/tls.go#L37
exported type TlsCredentialManager should have comment or be unexported
go-lint: KubeArmor/cert/tls.go#L19
exported type TlsConfig should have comment or be unexported
go-lint: KubeArmor/cert/tls.go#L74
exported method TlsCredentialManager.CreateTlsClientCredentials should have comment or be unexported
go-lint: KubeArmor/cert/tls.go#L41
exported function NewTlsCredentialManager should have comment or be unexported
go-lint: KubeArmor/cert/tls.go#L103
exported function GetX509KeyPairFromCertBytes should have comment or be unexported
go-lint: KubeArmor/cert/tls.go#L88
exported method TlsCredentialManager.CreateTlsServerCredentials should have comment or be unexported
go-lint: KubeArmor/state/stateAgent.go#L42
type name will be used as state.StateAgent by other packages, and that stutters; consider calling this Agent
go-lint: KubeArmor/feeder/feeder.go#L40
comment on exported const QueueSize should be of the form "QueueSize ..."
go-test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: 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/
go-test
Restore cache failed: Dependencies file is not found in /home/runner/work/KubeArmor/KubeArmor. Supported file pattern: go.sum
go-sec
The following actions uses Node.js version which is deprecated and will be forced to run on node20: 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/
go-sec
Restore cache failed: Dependencies file is not found in /home/runner/work/KubeArmor/KubeArmor. Supported file pattern: go.sum