(path string, value string)
| 496 | } |
| 497 | |
| 498 | func rejectTaskSecretText(path string, value string) error { |
| 499 | if redactTaskSecretText(value) != value { |
| 500 | return fmt.Errorf("%w: %s must not embed raw secret material", ErrValidation, path) |
| 501 | } |
| 502 | return nil |
| 503 | } |
| 504 | |
| 505 | func rejectTaskSecretJSON(path string, value []byte) error { |
| 506 | if len(value) == 0 { |
no test coverage detected