Skip to content

Commit bc2be31

Browse files
committed
test(security): document intentional password fixture for CI scanner
1 parent db8faea commit bc2be31

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/template_coverage_tests.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ fn script_types_and_encoded_attributes_cannot_silently_bypass_an_adapter() {
106106
#[test]
107107
fn nested_quotes_remain_part_of_attribute_and_css_values() {
108108
for (name, source) in [
109-
("secret.html", r#"<div password="'1234567'"></div>"#),
109+
// Deliberate dummy password: the detector must continue to flag this fixture.
110+
("secret.html", r#"<div password="'1234567'"></div>"#), // scanner-allow: rust-secrets
110111
("secret.css", r#"p { password: "'1234567'"; }"#),
111112
] {
112113
let report = scan(name, source);

0 commit comments

Comments
 (0)