fix(ci): fix TestParsePaymentConfig default values and renew xlsx audit exceptions

This commit is contained in:
erio
2026-04-07 18:33:00 +08:00
parent 4b30186adb
commit 4e68e1497a
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -5,14 +5,14 @@ exceptions:
severity: high
reason: "Admin export only; switched to dynamic import to reduce exposure (CVE-2023-30533)"
mitigation: "Load only on export; restrict export permissions and data scope"
expires_on: "2026-04-05"
expires_on: "2026-07-07"
owner: "security@your-domain"
- package: xlsx
advisory: "GHSA-5pgg-2g8v-p4x9"
severity: high
reason: "Admin export only; switched to dynamic import to reduce exposure (CVE-2024-22363)"
mitigation: "Load only on export; restrict export permissions and data scope"
expires_on: "2026-04-05"
expires_on: "2026-07-07"
owner: "security@your-domain"
- package: lodash
advisory: "GHSA-r5fr-rjxr-66jc"
@@ -72,11 +72,11 @@ func TestParsePaymentConfig(t *testing.T) {
if cfg.Enabled {
t.Fatal("expected Enabled=false by default")
}
if cfg.MinAmount != 1 {
t.Fatalf("expected MinAmount=1, got %v", cfg.MinAmount)
if cfg.MinAmount != 0 {
t.Fatalf("expected MinAmount=0 (no limit), got %v", cfg.MinAmount)
}
if cfg.MaxAmount != 99999999.99 {
t.Fatalf("expected MaxAmount=99999999.99, got %v", cfg.MaxAmount)
if cfg.MaxAmount != 0 {
t.Fatalf("expected MaxAmount=0 (no limit), got %v", cfg.MaxAmount)
}
if cfg.OrderTimeoutMin != 30 {
t.Fatalf("expected OrderTimeoutMin=30, got %v", cfg.OrderTimeoutMin)