diff --git a/scripts/src/hwlab-node-impl.ts b/scripts/src/hwlab-node-impl.ts index 8dca2028..0e6e2d96 100644 --- a/scripts/src/hwlab-node-impl.ts +++ b/scripts/src/hwlab-node-impl.ts @@ -6505,10 +6505,14 @@ function readLocalPostgresPasswordMaterial(input: { sourceRef: string; sourceKey } function localSecretSourcePaths(sourceRef: string): string[] { - const paths = [join(repoRoot, ".state", "secrets", sourceRef)]; const marker = "/.worktree/"; const index = repoRoot.indexOf(marker); - if (index >= 0) paths.push(join(repoRoot.slice(0, index), ".state", "secrets", sourceRef)); + const paths = index >= 0 + ? [ + join(repoRoot.slice(0, index), ".state", "secrets", sourceRef), + join(repoRoot, ".state", "secrets", sourceRef), + ] + : [join(repoRoot, ".state", "secrets", sourceRef)]; return [...new Set(paths)]; }