From b7c79e0446da926055b4ce14bb7792fae24c5a69 Mon Sep 17 00:00:00 2001 From: George Tsigourakos Date: Tue, 1 Oct 2024 11:06:01 +0300 Subject: [PATCH] [Test] Add test case for issue #857 --- tests/filters/heuristic_filter_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/filters/heuristic_filter_test.py b/tests/filters/heuristic_filter_test.py index 90e1eb0de..e0178ef8b 100644 --- a/tests/filters/heuristic_filter_test.py +++ b/tests/filters/heuristic_filter_test.py @@ -139,6 +139,8 @@ def test_is_prefixed_with_dollar_sign(secret, result): ('secret = get_secret_key()', True), ('secret = request.headers["apikey"]', True), ('secret = hunter2', False), + ("<%= ENV['CLIENT_ACCESS_KEY_ID'].presence || 'AKIA123456789ABCDEF1' %>", True), + ("ENV['CLIENT_ACCESS_KEY_ID'].presence || 'AKIA123456789ABCDEF1'", False), ), ) def test_is_indirect_reference(line, result):