Remove application credential substitution
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"gitea.maximumdirect.net/eric/audita/v3/internal/core/redaction"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
@@ -178,17 +177,13 @@ func completionTime(t *time.Time) *string {
|
||||
return &value
|
||||
}
|
||||
|
||||
// YAML redacts only string nodes after typed serialization.
|
||||
func YAML(document any, secrets ...string) ([]byte, error) {
|
||||
// YAML encodes the report document.
|
||||
func YAML(document any) ([]byte, error) {
|
||||
raw, err := yaml.Marshal(document)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("encode report YAML: %w", err)
|
||||
}
|
||||
safe, err := redaction.New(secrets).YAML(raw)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("redact report YAML: %w", err)
|
||||
}
|
||||
return safe, nil
|
||||
return raw, nil
|
||||
}
|
||||
|
||||
// StageLabel identifies a configured entry by position, module, and optional ID.
|
||||
|
||||
Reference in New Issue
Block a user