Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: fix db type (#8391)
Danny Xu61e14528fac6
diff --git a/backend/runner/approval/runner.go b/backend/runner/approval/runner.goindex 5b8df2b437..68af781f0a 100644--- a/backend/runner/approval/runner.go+++ b/backend/runner/approval/runner.go@@ -640,10 +640,11 @@ func getGrantRequestIssueRisk(ctx context.Context, s *store.Store, issue *store.return 0, store.RiskSourceUnknown, false, errors.Wrap(err, "failed to get instance")}args := map[string]any{- "environment_id": database.EffectiveEnvironmentID,- "project_id": issue.Project.ResourceID,- "database_name": database.DatabaseName,- "db_engine": instance.Engine,+ "environment_id": database.EffectiveEnvironmentID,+ "project_id": issue.Project.ResourceID,+ "database_name": database.DatabaseName,+ // convert to string type otherwise cel-go will complain that db.Type is not string type.+ "db_engine": string(instance.Engine),"export_rows": factors.ExportRows,"expiration_days": expirationDays,}@@ -671,10 +672,11 @@ func getGrantRequestIssueRisk(ctx context.Context, s *store.Store, issue *store.return 0, store.RiskSourceUnknown, false, errors.Wrap(err, "failed to get instance")}args := map[string]any{- "environment_id": database.EffectiveEnvironmentID,- "project_id": issue.Project.ResourceID,- "database_name": database.DatabaseName,- "db_engine": instance.Engine,+ "environment_id": database.EffectiveEnvironmentID,+ "project_id": issue.Project.ResourceID,+ "database_name": database.DatabaseName,+ // convert to string type otherwise cel-go will complain that db.Type is not string type.+ "db_engine": string(instance.Engine),"expiration_days": expirationDays,}res, _, err := prg.Eval(args)