fix(judgement,runs,approvals): record immutable identity IDs for attribution (#2122)
This commit is contained in:
10 files changed
+38
-28
No files matched your search
@@ -399,7 +399,7 @@ func (m *Module) publish(ctx context.Context, in *idInput) (*httpapi.Reply[View]
|
||||
return nil, huma.Error409Conflict("a workflow named " + d.Name + " already exists; rename the draft")
|
||||
}
|
||||
}
|
||||
by := "draft:" + d.Name
|
||||
by := governance.CallerID(ctx)
|
||||
if strings.TrimSpace(d.Policy) != "" {
|
||||
if _, err := m.policies.Append(ctx, d.PolicyKind, d.Policy, by); err != nil {
|
||||
return nil, m.fail(ctx, "add the policy", err)
|
||||
|
||||
Reference in new issue
Block a user