fix(judgement,runs,approvals): record immutable identity IDs for attribution (#2122)

This commit is contained in:
sam committed 2026-11-24 02:23:23 +11:00
1 parent eb4136ffe6
commit 4a9f30ef04
10 files changed
+38 -28

No files matched your search

+1 -1
View File
@@ -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)