Skip to content

chore: Enable gosec and fix findings #142

chore: Enable gosec and fix findings

chore: Enable gosec and fix findings #142

Triggered via pull request October 4, 2024 15:06
Status Failure
Total duration 9m 40s
Billable time 4m
Artifacts 4

ci.yml

on: pull_request
docker_pipeline  /  prepare-metadata
0s
docker_pipeline / prepare-metadata
Matrix: docker_pipeline / docker_build
docker_pipeline  /  merge_dockerhub
0s
docker_pipeline / merge_dockerhub
docker_pipeline  /  merge_ecr
0s
docker_pipeline / merge_ecr
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 4 warnings
lint_test / unit-tests: finality-provider/service/app_test.go#L68
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to service.NewFinalityProviderApp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / unit-tests: finality-provider/service/app_test.go#L194
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to service.NewFinalityProviderApp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / unit-tests: finality-provider/service/app_test.go#L268
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to service.NewFinalityProviderApp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / unit-tests: finality-provider/service/chain_poller_test.go#L53
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to service.NewChainPoller: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / unit-tests: finality-provider/service/chain_poller_test.go#L105
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to service.NewChainPoller: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / unit-tests: finality-provider/service/fastsync_test.go#L30
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to startFinalityProviderAppWithRegisteredFp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / unit-tests: finality-provider/service/fastsync_test.go#L82
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to startFinalityProviderAppWithRegisteredFp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / unit-tests: finality-provider/service/fp_instance_test.go#L37
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to startFinalityProviderAppWithRegisteredFp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / unit-tests: finality-provider/service/fp_instance_test.go#L61
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to startFinalityProviderAppWithRegisteredFp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / unit-tests: finality-provider/service/fp_manager_test.go#L44
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to newFinalityProviderManagerWithRegisteredFp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / lint: finality-provider/service/app_test.go#L68
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to service.NewFinalityProviderApp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / lint: finality-provider/service/app_test.go#L194
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to service.NewFinalityProviderApp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / lint: finality-provider/service/app_test.go#L268
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to service.NewFinalityProviderApp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / lint: finality-provider/service/chain_poller_test.go#L53
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to service.NewChainPoller: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / lint: finality-provider/service/chain_poller_test.go#L105
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to service.NewChainPoller: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / lint: finality-provider/service/fastsync_test.go#L30
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to startFinalityProviderAppWithRegisteredFp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / lint: finality-provider/service/fastsync_test.go#L82
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to startFinalityProviderAppWithRegisteredFp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / lint: finality-provider/service/fp_instance_test.go#L37
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to startFinalityProviderAppWithRegisteredFp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / lint: finality-provider/service/fp_instance_test.go#L61
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to startFinalityProviderAppWithRegisteredFp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
lint_test / lint: finality-provider/service/fp_manager_test.go#L44
cannot use mockClientController (variable of type *mocks.MockClientController) as clientcontroller.ClientController value in argument to newFinalityProviderManagerWithRegisteredFp: *mocks.MockClientController does not implement clientcontroller.ClientController (wrong type for method QueryBlocks)
The 'as' keyword should match the case of the 'from' keyword: Dockerfile#L1
FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
The 'as' keyword should match the case of the 'from' keyword: Dockerfile#L1
FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
The 'as' keyword should match the case of the 'from' keyword: Dockerfile#L1
FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
The 'as' keyword should match the case of the 'from' keyword: Dockerfile#L1
FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Artifacts

Produced during runtime
Name Size
babylonlabs-io~finality-provider~LFREJ9.dockerbuild Expired
39.2 KB
babylonlabs-io~finality-provider~Q21DRT.dockerbuild Expired
18.1 KB
babylonlabs-io~finality-provider~QZLVZZ.dockerbuild Expired
38.7 KB
babylonlabs-io~finality-provider~TKWVY2.dockerbuild Expired
18 KB