Skip to content

Add IAM policies

Add IAM policies #1853

Triggered via pull request July 26, 2023 15:28
Status Failure
Total duration 13m 55s
Artifacts

ci.yml

on: pull_request
API Verification
10s
API Verification
Build  /  timestamp
Build / timestamp
Build  /  vmclarity-backend
Build / vmclarity-backend
Build  /  vmclarity-cli
Build / vmclarity-cli
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Verification: backend/pkg/iam/oidc.go#L114
Comment should end in a period (godot)
Verification: backend/pkg/config/config.go#L30
G101: Potential hardcoded credentials (gosec)
Verification: backend/pkg/config/config.go#L35
G101: Potential hardcoded credentials (gosec)
Verification: backend/pkg/backend/backend.go#L56
calculated cyclomatic complexity for function Run is 11, max is 10 (cyclop)
Verification: backend/pkg/iam/iam.go#L76
mnd: Magic number: 2, in <condition> detected (gomnd)
Verification: backend/pkg/iam/oidc.go#L80
mnd: Magic number: 2, in <condition> detected (gomnd)
Verification: runtime_scan/pkg/provider/aws/config.go#L92
SA9003: empty branch (staticcheck)
Verification: backend/pkg/iam/iam.go#L62
error returned from interface method should be wrapped: sig: func (github.com/openclarity/vmclarity/backend/pkg/iam.Provider).Authenticate(ctx context.Context, request *net/http.Request) (*github.com/openclarity/vmclarity/backend/pkg/iam.User, error) (wrapcheck)
Verification: backend/pkg/iam/oidc.go#L133
error returned from interface method should be wrapped: sig: func (golang.org/x/oauth2.TokenSource).Token() (*golang.org/x/oauth2.Token, error) (wrapcheck)
Verification: backend/pkg/rest/asset_controller.go#L34
error returned from external package is unwrapped: sig: func github.com/openclarity/vmclarity/backend/pkg/common.SendError(ctx github.com/labstack/echo/v4.Context, code int, message string) error (wrapcheck)