@@ -100,13 +100,13 @@ const (
|
||||
ActionVendorRiskAssessmentList = "core:vendor-risk-assessment:list"
|
||||
|
||||
// Framework actions
|
||||
ActionFrameworkGet = "core:framework:get"
|
||||
ActionFrameworkList = "core:framework:list"
|
||||
ActionFrameworkCreate = "core:framework:create"
|
||||
ActionFrameworkUpdate = "core:framework:update"
|
||||
ActionFrameworkDelete = "core:framework:delete"
|
||||
ActionFrameworkGet = "core:framework:get"
|
||||
ActionFrameworkList = "core:framework:list"
|
||||
ActionFrameworkCreate = "core:framework:create"
|
||||
ActionFrameworkUpdate = "core:framework:update"
|
||||
ActionFrameworkDelete = "core:framework:delete"
|
||||
ActionFrameworkExport = "core:framework:export"
|
||||
ActionFrameworkImport = "core:framework:import"
|
||||
ActionFrameworkImport = "core:framework:import"
|
||||
|
||||
// Control actions
|
||||
ActionControlGet = "core:control:get"
|
||||
|
||||
@@ -386,16 +386,16 @@ func (s MeasureService) Import(
|
||||
continue
|
||||
}
|
||||
|
||||
controlMeasure := &coredata.ControlMeasure{
|
||||
ControlID: control.ID,
|
||||
MeasureID: measure.ID,
|
||||
OrganizationID: measure.OrganizationID,
|
||||
CreatedAt: now,
|
||||
}
|
||||
controlMeasure := &coredata.ControlMeasure{
|
||||
ControlID: control.ID,
|
||||
MeasureID: measure.ID,
|
||||
OrganizationID: measure.OrganizationID,
|
||||
CreatedAt: now,
|
||||
}
|
||||
|
||||
if err := controlMeasure.Upsert(ctx, tx, s.svc.scope); err != nil {
|
||||
return fmt.Errorf("cannot insert control measure: %w", err)
|
||||
}
|
||||
if err := controlMeasure.Upsert(ctx, tx, s.svc.scope); err != nil {
|
||||
return fmt.Errorf("cannot insert control measure: %w", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@ import (
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/aws"
|
||||
"github.com/aws/aws-sdk-go-v2/service/s3"
|
||||
"go.gearno.de/kit/pg"
|
||||
"go.probo.inc/probo/pkg/coredata"
|
||||
"go.probo.inc/probo/pkg/gid"
|
||||
"go.gearno.de/kit/pg"
|
||||
)
|
||||
|
||||
type ReportService struct {
|
||||
|
||||
Reference in New Issue
Block a user