Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Limit webhook error messge to 100 letters incase it outputs too much
天舟da04bd51de15
diff --git a/plugin/webhook/slack.go b/plugin/webhook/slack.goindex 19a8f240a0..7499aa9e43 100644--- a/plugin/webhook/slack.go+++ b/plugin/webhook/slack.go@@ -142,7 +142,7 @@ func (receiver *SlackReceiver) post(context WebhookContext) error {defer resp.Body.Close()if string(b) != "ok" {- return fmt.Errorf("%s", string(b))+ return fmt.Errorf("%s", fmt.Sprintf("%.100s", string(b)))}return nildiff --git a/plugin/webhook/teams.go b/plugin/webhook/teams.goindex 46981876f9..e941cd6d7d 100644--- a/plugin/webhook/teams.go+++ b/plugin/webhook/teams.go@@ -110,7 +110,7 @@ func (receiver *TeamsReceiver) post(context WebhookContext) error {defer resp.Body.Close()if string(b) != "1" {- return fmt.Errorf("%s", string(b))+ return fmt.Errorf("%s", fmt.Sprintf("%.100s", string(b)))}return nil