Merge pull request #30213 from LoudShadow/fix/add-taskid-created-by-scaffolder-audit

fix: Scaffolder audit Log now includes taskId and createdBy
This commit is contained in:
Paul Schultz
2025-07-14 23:05:06 -05:00
committed by GitHub
4 changed files with 12 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Scaffolder audit Log now includes taskId and createdBy
+2
View File
@@ -445,6 +445,8 @@ export class TaskManager implements TaskContext {
// (undocumented)
get spec(): TaskSpecV1beta3;
// (undocumented)
get taskId(): string;
// (undocumented)
updateCheckpoint?(options: UpdateTaskCheckpointOptions): Promise<void>;
}
@@ -96,6 +96,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,
},