Skip to content

Fix baseline suppression for same resources in different directories - #7624

Open
haneul-24 wants to merge 1 commit into
bridgecrewio:mainfrom
haneul-24:fix/7486-baseline-file-match
Open

Fix baseline suppression for same resources in different directories#7624
haneul-24 wants to merge 1 commit into
bridgecrewio:mainfrom
haneul-24:fix/7486-baseline-file-match

Conversation

@haneul-24

Copy link
Copy Markdown

Description

fixes: #7486

This fixes an issue where baseline matching only checked the resource and check ID. Because of that, resources with the same name in different directories could be treated as the same finding and get suppressed.
I added the file path to the comparison so only the matching file is suppressed.
I also added a regression test to cover this case.

Testing

  • Reproduced the issue using the provided example.
  • Verified that the issue occurs without the fix.
  • Verified that only the matching file is suppressed after the fix.
  • Ran the new regression test and existing baseline tests successfully.

Signed-off-by: unknown <sej1306kook@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Baseline entries do not understand same resources in different directories

1 participant