Bläddra i källkod

Fix non-constant webhook error message

Herman Slatman 2 år sedan
förälder
incheckning
61b0440f5a
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      acme/order.go

+ 1 - 1
acme/order.go

@@ -309,7 +309,7 @@ func (o *Order) Finalize(ctx context.Context, db DB, csr *x509.CertificateReques
 		// Add subproblem for webhook errors, others can be added later.
 		// Add subproblem for webhook errors, others can be added later.
 		var webhookErr *webhook.Error
 		var webhookErr *webhook.Error
 		if errors.As(err, &webhookErr) {
 		if errors.As(err, &webhookErr) {
-			acmeError := NewDetailedError(ErrorUnauthorizedType, webhookErr.Error())
+			acmeError := NewDetailedError(ErrorUnauthorizedType, webhookErr.Error()) //nolint:govet // allow non-constant error messages
 			acmeError.AddSubproblems(Subproblem{
 			acmeError.AddSubproblems(Subproblem{
 				Type:   fmt.Sprintf("urn:smallstep:webhook:error:%s", webhookErr.Code),
 				Type:   fmt.Sprintf("urn:smallstep:webhook:error:%s", webhookErr.Code),
 				Detail: webhookErr.Message,
 				Detail: webhookErr.Message,