Skip to content

Commit

Permalink
quick fix to report failures from running the token-source. (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
timburks authored Mar 31, 2023
1 parent a38ff58 commit 31b1be9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ func (c *Configuration) Resolve() error {
if c.Registry.Token == "" && c.TokenSource != "" {
shellArgs := strings.Split(c.TokenSource, " ")
execCmd := exec.Command(shellArgs[0], shellArgs[1:]...)
out, err := execCmd.Output()
out, err := execCmd.CombinedOutput()
if err != nil {
return err
return fmt.Errorf("error running token source: %s", string(out))
}
c.Registry.Token = strings.TrimSpace(string(out))
}
Expand Down

0 comments on commit 31b1be9

Please sign in to comment.