feat(core): Move execution permission checks earlier in the lifecycle (#8677)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-02-21 14:47:02 +01:00
committed by GitHub
parent a573146135
commit 059d281fd1
10 changed files with 139 additions and 201 deletions

View File

@@ -2083,7 +2083,6 @@ export type WorkflowActivateMode =
| 'leadershipChange';
export interface IWorkflowHooksOptionalParameters {
parentProcessMode?: string;
retryOf?: string;
sessionId?: string;
}

View File

@@ -10,16 +10,15 @@ export class CredentialAccessError extends ExecutionBaseError {
constructor(
readonly node: INode,
credentialId: string,
workflow: { id: string; name?: string },
workflowId: string,
) {
super('Node has no access to credential', {
tags: {
nodeType: node.type,
},
extra: {
workflowId: workflow.id,
workflowName: workflow.name ?? '',
credentialId,
workflowId,
},
});
}