refactor: apply review suggestions
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user