on main help sign in
chore: fix provider
3cbafd3Kujtim Hoxha
internal/config/config.go+1−1
@@ -72,7 +72,7 @@ type ProviderConfig struct {
72 Disable bool `json:"disable,omitempty"`
72 Disable bool `json:"disable,omitempty"`
73
73
74 // Extra headers to send with each request to the provider.
74 // Extra headers to send with each request to the provider.
75− ExtraHeaders map[string]string
75+ ExtraHeaders map[string]string `json:"extra_headers,omitempty"`
76
76
77 // Used to pass extra parameters to the provider.
77 // Used to pass extra parameters to the provider.
78 ExtraParams map[string]string `json:"-"`
78 ExtraParams map[string]string `json:"-"`
internal/config/resolve.go+1−1
@@ -44,7 +44,7 @@ func (r *shellVariableResolver) ResolveValue(value string) (string, error) {
44
44
45 if strings.HasPrefix(value, "$(") && strings.HasSuffix(value, ")") {
45 if strings.HasPrefix(value, "$(") && strings.HasSuffix(value, ")") {
46 command := strings.TrimSuffix(strings.TrimPrefix(value, "$("), ")")
46 command := strings.TrimSuffix(strings.TrimPrefix(value, "$("), ")")
47− ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
47+ ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
48 defer cancel()
48 defer cancel()
49
49
50 stdout, _, err := r.shell.Exec(ctx, command)
50 stdout, _, err := r.shell.Exec(ctx, command)