From c4ca083f71f66abda16ad06f252d45c6386dff57 Mon Sep 17 00:00:00 2001 From: Sanjula Ganepola Date: Sat, 28 Sep 2024 19:56:07 -0400 Subject: [PATCH] Log environments, variables, and secrets Signed-off-by: Sanjula Ganepola --- src/act.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/act.ts b/src/act.ts index 539a38f..c2c2144 100644 --- a/src/act.ts +++ b/src/act.ts @@ -103,7 +103,14 @@ export class Act { onDidWrite: writeEmitter.event, onDidClose: closeEmitter.event, open: async (initialDimensions: TerminalDimensions | undefined): Promise => { - writeEmitter.fire(`Workflow: ${workflow.name}\r\nPath: ${workflow.uri.fsPath}\r\nCommand: ${command}\r\nTimestamp: ${new Date().toLocaleTimeString()}\r\n\r\n`); + writeEmitter.fire(`Workflow: ${workflow.name}\r\n`); + writeEmitter.fire(`Path: ${workflow.uri.fsPath}\r\n`); + writeEmitter.fire(`Command: ${command}\r\n`); + writeEmitter.fire(`Environments: OSSBUILD\r\n`); + writeEmitter.fire(`Variables: VARIABLE1=ABC, VARIABLE2=DEF\r\n`); + writeEmitter.fire(`Secrets: SECRET1=ABC, SECRET2=DEF\r\n`); + writeEmitter.fire(`Timestamp: ${new Date().toLocaleTimeString()}\r\n`); + writeEmitter.fire(`\r\n`); const exec = child_process.spawn(command, { cwd: workspaceFolder.uri.fsPath, shell: '/usr/bin/bash' }); exec.stdout.on('data', (data) => {