diff --git a/detect/detect_test.go b/detect/detect_test.go index 0ec7623..7fec1d7 100644 --- a/detect/detect_test.go +++ b/detect/detect_test.go @@ -141,6 +141,7 @@ func TestResourceGroups(t *testing.T) { touch(".github/CODEOWNERS") touch(".github/FUNDING.yml") touch("docs/SECURITY.md") + touch("DISCLOSURE") touch("CITATION.cff") engine := New(loadKB(t), dir) @@ -174,6 +175,9 @@ func TestResourceGroups(t *testing.T) { if res.Security["policy"] != "docs/SECURITY.md" { t.Errorf("security.policy = %q", res.Security["policy"]) } + if res.Security["disclosure"] != "DISCLOSURE" { + t.Errorf("security.disclosure = %q", res.Security["disclosure"]) + } if res.Metadata["funding"] != ".github/FUNDING.yml" { t.Errorf("metadata.funding = %q", res.Metadata["funding"]) } diff --git a/knowledge/_shared/_resources.toml b/knowledge/_shared/_resources.toml index 377bb9a..6925744 100644 --- a/knowledge/_shared/_resources.toml +++ b/knowledge/_shared/_resources.toml @@ -151,6 +151,13 @@ field = "audit" group = "security" patterns = ["audit", "audit.md", "audit.txt", "audit.rst"] +[[resources]] +[resources.resource] +name = "Disclosure" +field = "disclosure" +group = "security" +patterns = ["disclosure", "disclosure.md", "disclosure.txt"] + # Metadata (machine-readable) [[resources]]