chore: Enable gosec and fix findings #142
ci.yml
on: pull_request
docker_pipeline
/
prepare-metadata
0s
lint_test
/
build
1m 39s
lint_test
/
lint
3m 22s
lint_test
/
unit-tests
3m 8s
lint_test
/
integration-tests
9m 28s
lint_test
/
check-mock-gen
0s
lint_test
/
gosec
2m 46s
Matrix: docker_pipeline / docker_build
docker_pipeline
/
merge_dockerhub
0s
docker_pipeline
/
merge_ecr
0s
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 |
|