refactor: apply review suggestions

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-02-27 16:34:38 +01:00
committed by blam
parent aa543c9e72
commit 4fd8dffdd9
11 changed files with 120 additions and 41 deletions
+5 -5
View File
@@ -50,6 +50,11 @@ export type ActionContext<
*/
createTemporaryDirectory(): Promise<string>;
/**
* Get the credentials for the current request
*/
getInitiatorCredentials(): Promise<BackstageCredentials>;
templateInfo?: TemplateInfo;
/**
@@ -81,11 +86,6 @@ export type ActionContext<
* Optional value of each invocation
*/
each?: JsonObject;
/**
* Get the credentials for the current request
*/
getInitiatorCredentials(): Promise<BackstageCredentials>;
};
/** @public */
@@ -24,11 +24,7 @@ import { JsonObject, JsonValue, Observable } from '@backstage/types';
* @public
*/
export type TaskSecrets = Record<string, string> & {
/**
* @deprecated use "initiatorCredentials" instead
*/
backstageToken?: string;
initiatorCredentials?: string;
};
/**