Skip to content

Add /v2 endpoints

Add /v2 endpoints #411

Triggered via pull request October 13, 2023 01:34
Status Failure
Total duration 1m 7s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

go.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
golangci: pkg/service/list.go#L1
Missed header for check (goheader)
golangci: pkg/service/list.go#L8
File is not `goimports`-ed (goimports)
golangci: pkg/object/handlers.go#L156
Error return value of `encoding/json.Marshal` is not checked: unsafe type `interface{}` found (errchkjson)
golangci: pkg/service/auth.go#L209
type assertion must be checked (forcetypeassert)
golangci: pkg/object/permission/list.go#L63
S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)
golangci: pkg/object/user/list.go#L69
S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)
golangci: pkg/authz/warrant/spec_test.go#L25
Function TestCreateSpecToWarrantDirectWarrant missing the call to method parallel
golangci: pkg/authz/warrant/spec_test.go#L52
Function TestCreateSpecToWarrantDirectWarrantWithPolicy missing the call to method parallel
golangci: pkg/authz/warrant/spec_test.go#L83
Function TestCreateSpecToWarrantDirectWarrantWithContext missing the call to method parallel
golangci: pkg/authz/warrant/spec_test.go#L116
Function TestCreateSpecToWarrantGroupWarrant missing the call to method parallel
ci
Restore cache failed: Dependencies file is not found in /home/runner/work/warrant/warrant. Supported file pattern: go.sum