chore: set the secrets type as TaskSecrets

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-01-19 18:20:19 +01:00
parent 2d4ef2b78e
commit 8181b34c89
@@ -18,7 +18,7 @@ import { Logger } from 'winston';
import { Writable } from 'stream';
import { JsonValue, JsonObject } from '@backstage/types';
import { Schema } from 'jsonschema';
import { TemplateMetadata } from '../tasks/types';
import { TaskSecrets, TemplateMetadata } from '../tasks/types';
type PartialJsonObject = Partial<JsonObject>;
type PartialJsonValue = PartialJsonObject | JsonValue | undefined;
@@ -38,9 +38,7 @@ export type ActionContext<Input extends InputBase> = {
* @deprecated use `secrets.backstageToken` instead
*/
token?: string | undefined;
secrets?: TaskSecrets;
workspacePath: string;
input: Input;
output(name: string, value: JsonValue): void;