Scaffolder audit Log now includes taskId and createdBy

Signed-off-by: Joseph <josephevanspublic@gmail.com>
This commit is contained in:
Joseph
2025-06-11 19:42:55 +01:00
parent f7e7469944
commit 424610a6ab
3 changed files with 10 additions and 0 deletions
+5
View File
@@ -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,
},