Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Add IAM policies

Add IAM policies #1846

Triggered via pull request July 26, 2023 13:00
Status Failure
Total duration 12m 57s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yml

on: pull_request
API Verification
21s
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/iam.go#L30
Comment should end in a period (godot)
Verification: backend/pkg/iam/iam.go#L46
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/oidc.go#L73
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#L52
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#L136
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)