Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(team): hide PowerShell parser through shared process owner
  • Loading branch information
SivanCola committed Nov 3, 2026
commit 6917df55b33e47c14acc342642170508fd935f64
4 changes: 2 additions & 2 deletions internal/team/secret_references.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"context"
"encoding/json"
"errors"
"os/exec"
"slices"
"strings"
"time"

"mvdan.cc/sh/v3/syntax"

"deepzora/internal/proc"
"deepzora/internal/teamroster"
)

Expand Down Expand Up @@ -60,7 +60,7 @@ func ReferencedPowerShellSecrets(ctx context.Context, executable, command string
}
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()
cmd := exec.CommandContext(ctx, executable, "-NoLogo", "-NoProfile", "-NonInteractive", "-Command", powershellSecretParser)
cmd := proc.CommandContext(ctx, executable, "-NoLogo", "-NoProfile", "-NonInteractive", "-Command", powershellSecretParser)
cmd.Stdin = strings.NewReader(command)
var out boundedSecretParserOutput
cmd.Stdout = &out
Expand Down