Skip to content

Add vulnerability search API

Codecov / codecov/patch failed Jul 17, 2023 in 1s

53.71% of diff hit (target 67.39%)

View this Pull Request on Codecov

53.71% of diff hit (target 67.39%)

Annotations

Check warning on line 153 in src/controller/securityhub/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/controller/securityhub/controller.go#L152-L153

Added lines #L152 - L153 were not covered by tests

Check warning on line 157 in src/controller/securityhub/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/controller/securityhub/controller.go#L156-L157

Added lines #L156 - L157 were not covered by tests

Check warning on line 177 in src/controller/securityhub/controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/controller/securityhub/controller.go#L176-L177

Added lines #L176 - L177 were not covered by tests

Check warning on line 128 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L128

Added line #L128 was not covered by tests

Check warning on line 166 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L159-L166

Added lines #L159 - L166 were not covered by tests

Check warning on line 168 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L168

Added line #L168 was not covered by tests

Check warning on line 259 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L258-L259

Added lines #L258 - L259 were not covered by tests

Check warning on line 264 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L263-L264

Added lines #L263 - L264 were not covered by tests

Check warning on line 270 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L269-L270

Added lines #L269 - L270 were not covered by tests

Check warning on line 274 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L273-L274

Added lines #L273 - L274 were not covered by tests

Check warning on line 285 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L284-L285

Added lines #L284 - L285 were not covered by tests

Check warning on line 291 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L290-L291

Added lines #L290 - L291 were not covered by tests

Check warning on line 299 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L298-L299

Added lines #L298 - L299 were not covered by tests

Check warning on line 304 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L303-L304

Added lines #L303 - L304 were not covered by tests

Check warning on line 328 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L327-L328

Added lines #L327 - L328 were not covered by tests

Check warning on line 331 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L330-L331

Added lines #L330 - L331 were not covered by tests

Check warning on line 342 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L341-L342

Added lines #L341 - L342 were not covered by tests

Check warning on line 350 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L349-L350

Added lines #L349 - L350 were not covered by tests

Check warning on line 358 in src/pkg/securityhub/dao/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/dao/security.go#L357-L358

Added lines #L357 - L358 were not covered by tests

Check warning on line 76 in src/pkg/securityhub/manager.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/manager.go#L75-L76

Added lines #L75 - L76 were not covered by tests

Check warning on line 80 in src/pkg/securityhub/manager.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/pkg/securityhub/manager.go#L79-L80

Added lines #L79 - L80 were not covered by tests

Check warning on line 122 in src/server/v2.0/handler/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/server/v2.0/handler/security.go#L101-L122

Added lines #L101 - L122 were not covered by tests

Check warning on line 145 in src/server/v2.0/handler/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/server/v2.0/handler/security.go#L125-L145

Added lines #L125 - L145 were not covered by tests

Check warning on line 147 in src/server/v2.0/handler/security.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/server/v2.0/handler/security.go#L147

Added line #L147 was not covered by tests