Core Rule Set: gitea's ordinary requests pass by default (#208)
check / check (push) Successful in 3m29s

This commit was merged in pull request #208.
This commit is contained in:
clawbot committed 2026-11-07 05:21:22 +01:00
1 parent 7fed6b6d36
commit 2e2f6f7175
13 files changed
+1270 -69

No files matched your search

+6
View File
@@ -463,6 +463,11 @@ func newServeWAFWith(
}
}
coreRuleSet, err := servewaf.NewCoreRuleSet(cfg)
if err != nil {
t.Fatalf("Core Rule Set: %v", err)
}
server := build(servewaf.Params{
Config: cfg,
RequestLog: out,
@@ -470,6 +475,7 @@ func newServeWAFWith(
GeoJSURL: geojsURL,
AbuseIPDBURL: abuseIPDBURL,
LookupFile: lookupFile,
CoreRuleSet: coreRuleSet,
Now: now,
Rules: ruleFiles,
Alerts: alertQueue,