Skip to content

Commit

Permalink
Fix #1410 - Include sectxt notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Jun 18, 2024
1 parent 5648f3e commit 326c99a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion checks/tasks/securitytxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,5 @@ def parser_format(parser_messages):
"securitytxt_score": score,
"securitytxt_found_host": result.found_host,
"securitytxt_errors": errors,
"securitytxt_recommendations": parser_format(parser.recommendations),
"securitytxt_recommendations": parser_format(parser.recommendations + parser.notifications),
}
2 changes: 2 additions & 0 deletions checks/test/test_securitytxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def test_evaluate_securitytxt():
b"Expires: 2050-09-01T00:00:00.000Z\n"
b"Contact: mailto:[email protected]\n"
b"Canonical: https://host/.well-known/security.txt\n"
b"unknown-field: https://host/.well-known/security.txt\n"
),
url="https://example.com/security.txt",
found_host="host",
Expand All @@ -228,5 +229,6 @@ def test_evaluate_securitytxt():
{"msgid": "long_expiry", "context": {"line_no": 1}},
{"msgid": "no_encryption", "context": {"line_no": None}},
{"msgid": "not_signed", "context": {"line_no": None}},
{"msgid": "unknown_field", "context": {"line_no": None}},
],
}

0 comments on commit 326c99a

Please sign in to comment.