scaffolder: make dry-run secrets optional to match task execution

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-05-31 12:20:15 +02:00
parent c7a5d8d7ae
commit b817af39ad
2 changed files with 2 additions and 2 deletions
@@ -340,7 +340,7 @@ export async function createRouter(
const bodySchema = z.object({
template: z.unknown(),
values: z.record(z.unknown()),
secrets: z.record(z.string()),
secrets: z.record(z.string()).optional(),
directoryContents: z.array(
z.object({ path: z.string(), base64Content: z.string() }),
),
+1 -1
View File
@@ -154,7 +154,7 @@ export interface ScaffolderStreamLogsOptions {
export interface ScaffolderDryRunOptions {
template: JsonValue;
values: JsonObject;
secrets: JsonObject;
secrets?: Record<string, string>;
directoryContents: { path: string; base64Content: string }[];
}