fix(security): 修复gosec报告的7处代码安全分析告警(G101/G104/G203/G602)
Security Checks / security (push) Waiting to run
Security Checks / security (push) Waiting to run
This commit is contained in:
1 parent
e58e635492
commit
3753c4a0c9
6 files changed
+14
-4
No files matched your search
@@ -16,6 +16,7 @@ import (
|
||||
|
||||
const (
|
||||
PluginEgressSocket = "/egress.socket"
|
||||
// #nosec G101 -- 这是 HTTP 请求头名称常量,并非硬编码密码凭证
|
||||
egressTokenHeader = "X-Smail-Egress-Token"
|
||||
egressTargetHeader = "X-Smail-Egress-Target"
|
||||
maxEgressRequestBytes int64 = 32 << 20
|
||||
|
||||
Reference in new issue
Block a user