File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ func isSecurityPolicyFilename(name string) bool {
107107 strings .EqualFold (name , "security.adoc" ) ||
108108 strings .EqualFold (name , ".github/security.adoc" ) ||
109109 strings .EqualFold (name , "docs/security.adoc" ) ||
110+ strings .EqualFold (name , "security.rst" ) ||
111+ strings .EqualFold (name , ".github/security.rst" ) ||
110112 strings .EqualFold (name , "doc/security.rst" ) ||
111113 strings .EqualFold (name , "docs/security.rst" )
112114}
Original file line number Diff line number Diff line change @@ -63,6 +63,26 @@ func TestSecurityPolicy(t *testing.T) {
6363 NumberOfInfo : 1 ,
6464 },
6565 },
66+ {
67+ name : "security.rst" ,
68+ files : []string {
69+ "security.rst" ,
70+ },
71+ want : scut.TestReturn {
72+ Score : 10 ,
73+ NumberOfInfo : 1 ,
74+ },
75+ },
76+ {
77+ name : ".github/security.rst" ,
78+ files : []string {
79+ ".github/security.rst" ,
80+ },
81+ want : scut.TestReturn {
82+ Score : 10 ,
83+ NumberOfInfo : 1 ,
84+ },
85+ },
6686 {
6787 name : "docs/security.rst" ,
6888 files : []string {
You can’t perform that action at this time.
0 commit comments