This is an automated email from the ASF dual-hosted git repository. klesh pushed a commit to branch kw-5519-jenkins in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 1a9d3a71e9479132f0d28f494da174d560de7a32 Author: Klesh Wong <[email protected]> AuthorDate: Fri Dec 1 17:27:33 2023 +0800 fix: sensitive information should be removed for Create Scope api --- backend/helpers/pluginhelper/api/model_api_helper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/helpers/pluginhelper/api/model_api_helper.go b/backend/helpers/pluginhelper/api/model_api_helper.go index af4905eb6..f0f72bda3 100644 --- a/backend/helpers/pluginhelper/api/model_api_helper.go +++ b/backend/helpers/pluginhelper/api/model_api_helper.go @@ -73,6 +73,7 @@ func (self *ModelApiHelper[M]) Post(input *plugin.ApiResourceInput) (*plugin.Api if err != nil { return nil, err } + model = self.Sanitize(model) return &plugin.ApiResourceOutput{ Status: http.StatusCreated, Body: model,
