Skip to content

fix(fp): correct validator:validator and pkg:maven/co.elastic.apm/.* hosted suppressions#8525

Merged
nhumblot merged 2 commits into
dependency-check:generatedSuppressionsfrom
chadlwilson:fix-conservative-suppressions-2
May 22, 2026
Merged

fix(fp): correct validator:validator and pkg:maven/co.elastic.apm/.* hosted suppressions#8525
nhumblot merged 2 commits into
dependency-check:generatedSuppressionsfrom
chadlwilson:fix-conservative-suppressions-2

Conversation

@chadlwilson
Copy link
Copy Markdown
Collaborator

@chadlwilson chadlwilson commented May 20, 2026

Description of Change

Another minor regression due to #8522. I was sure I had sanity checked the diff hunks to make sure only <cpe> lines were changed when converting to regex. Obviously messed something up.

This reverts the package URL matchers to how they were before being accidentally changed; and corrects a few regex .-escaping nitpicks.

Related issues

Have test cases been added to cover the new functionality?

This time I have git diffed to before all these changes to double-check only intended <cpe> rules have a delta with before.

Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates generated suppression rules by simplifying package URL regex patterns in generatedSuppressions.xml to broaden/adjust matching for known false positives.

Changes:

  • Modified Maven packageUrl suppression regex for co.elastic.apm.
  • Modified generic packageUrl suppression regex with a negative lookahead exception list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread generatedSuppressions.xml
Comment thread generatedSuppressions.xml
@chadlwilson chadlwilson requested a review from jeremylong May 20, 2026 16:11
Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
@chadlwilson chadlwilson requested a review from nhumblot May 21, 2026 05:11
@chadlwilson
Copy link
Copy Markdown
Collaborator Author

@jeremylong @nhumblot can one of you please take a look at this? These couple of regressions are still getting multiple comments and FP reports coming in.

Comment thread generatedSuppressions.xml
]]></notes>
<packageUrl regex="true">^pkg:nuget/Microsoft\.AspNet\.TelemetryCorrelation@.*$</packageUrl>
<cpe regex="true">cpe:/a:microsoft:asp.net(:.*)?$</cpe>
<cpe regex="true">cpe:/a:microsoft:asp\.net(:.*)?$</cpe>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: this is a fix

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sorry for not highlighting this as clearly.

Comment thread generatedSuppressions.xml
FP per issues #3876, #7998
]]></notes>
<packageUrl regex="true">^pkg:maven/co\.elastic\.apm/(:.*)?$</packageUrl>
<packageUrl regex="true">^pkg:maven/co\.elastic\.apm/.*</packageUrl>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: this is a revert

Comment thread generatedSuppressions.xml
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.eclipse\.core/org\.eclipse\.core\.expressions@.*$</packageUrl>
<cpe regex="true">cpe:/a:eclipse:org.eclipse.core.runtime(:.*)?$</cpe>
<cpe regex="true">cpe:/a:eclipse:org\.eclipse\.core\.runtime(:.*)?$</cpe>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: this is a fix

Comment thread generatedSuppressions.xml
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.spdx/spdx-java-model-2_X@.*$</packageUrl>
<cpe regex="true">cpe:/a:x.org:x.org(:.*)?$</cpe>
<cpe regex="true">cpe:/a:x\.org:x\.org(:.*)?$</cpe>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: this is a fix

Comment thread generatedSuppressions.xml
FP per issue #8243, #8244, #8247, #8249
]]></notes>
<packageUrl regex="true">^pkg:(?!maven/nu\.validator/validator@|npm/vnu-jar)(:.*)?$</packageUrl>
<packageUrl regex="true">^pkg:(?!maven/nu\.validator/validator@|npm/vnu-jar).*</packageUrl>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: this is a revert

@nhumblot nhumblot merged commit 1227b8e into dependency-check:generatedSuppressions May 22, 2026
2 checks passed
@chadlwilson chadlwilson deleted the fix-conservative-suppressions-2 branch May 22, 2026 06:52
@chadlwilson
Copy link
Copy Markdown
Collaborator Author

Thank you sir 🫡

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.

3 participants