Scaffolder audit Log now includes taskId and createdBy
Signed-off-by: Joseph <josephevanspublic@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-backend': patch
|
||||
---
|
||||
|
||||
Scaffolder audit Log now includes taskId and createdBy
|
||||
@@ -105,6 +105,10 @@ export class TaskManager implements TaskContext {
|
||||
private readonly auth?: AuthService,
|
||||
) {}
|
||||
|
||||
get taskId() {
|
||||
return this.task.taskId;
|
||||
}
|
||||
|
||||
get spec() {
|
||||
return this.task.spec;
|
||||
}
|
||||
|
||||
@@ -189,6 +189,7 @@ export class TaskWorker {
|
||||
meta: {
|
||||
actionType: 'execution',
|
||||
taskId: task.taskId,
|
||||
createdBy: task.createdBy,
|
||||
taskParameters: task.spec.parameters,
|
||||
templateRef: task.spec.templateInfo?.entityRef,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user