当我推送 bitbucket 时收到以下消息:
Repository https://git.xx.xxx/scm/appXXXx/appxxx-xx-gateway.git
pre-receive hook declined
Push rejected due to security vulnerabilities detected by security hook.
GENERIC_PASSWORD vulnerability detected in file src/main/resources/application.yml (678a59ebfee39534b4a68e1ad01c36f3cf2f9a2b) on line 14.
此消息的原因是因为“密码”一词在 Application.xml 中,如下例所示:
mail:
host: myhost.xxx.com
port: 123
username: ${MAIL_USERNAME}
password: ENC(${MAIL_PASSWORD})
你们知道如何克服这个问题吗?
非常感谢您的帮助 谢谢