Skip to content

Commit

Permalink
[Test] Add test case for issue Yelp#857
Browse files Browse the repository at this point in the history
  • Loading branch information
tsigouris007 committed Oct 1, 2024
1 parent 23e5097 commit b7c79e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/filters/heuristic_filter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b7c79e0

Please sign in to comment.