Skip to content

Commit e99a556

Browse files
committed
Published using @Stream44 Studio
Signed-off-by: Christoph <christoph@christoph.diy>
1 parent 66f39e1 commit e99a556

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424

2525
- name: Initialize workspace
2626
run: ./bin/t44 init --yes
27+
env:
28+
T44_KEYS_PASSPHRASE: t44-ci-test
2729

2830
- name: Run tests
2931
run: bun test --bail

lib/key.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,14 @@ export async function ensureKeyInAgent(privateKeyPath: string, keyName: string,
184184

185185
/**
186186
* Prompt for a passphrase using inquirer (password input with confirmation).
187+
* Returns null in non-TTY mode (CI environments).
187188
*/
188189
export async function promptPassphrase(): Promise<string | null> {
190+
// Skip prompting in non-TTY mode (CI, scripts, etc.)
191+
if (!process.stdin.isTTY || process.env.CI) {
192+
return null
193+
}
194+
189195
const inquirer = await import('inquirer')
190196
const chalk = (await import('chalk')).default
191197

0 commit comments

Comments
 (0)