dependency-track icon indicating copy to clipboard operation
dependency-track copied to clipboard

feat: support configurable match mode for internal component regex (AND/OR)

Open ch8matt opened this issue 6 months ago • 1 comments

Description

Adds support for configuring how internal component regex filters are applied.

  • Introduced a new config property: internal-components.match-mode (OR by default, accepts AND)
  • When set to AND, a component must match both the group and name regex to be considered internal.
  • When OR (default), a match on either field suffices.

Addressed Issue

Additional Details

Checklist

  • [x] I have read and understand the contributing guidelines
  • [ ] This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • [ ] This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • [ ] This PR introduces changes to the database model, and I have added corresponding update logic
  • [x] This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

ch8matt avatar Jun 18 '25 21:06 ch8matt

:tada: Snyk checks have passed. No issues have been found so far.

:white_check_mark: security/snyk check is complete. No issues have been found. (View Details)

owasp-dt-bot avatar Jun 18 '25 21:06 owasp-dt-bot

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.01% (target: -1.00%) :white_check_mark: 100.00% (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (076707232602cc22d19de5fe78eea7a3afd1a818) 24017 19406 80.80%
Head commit (6b03e5057f242b8963f8ad30205fe7409b2764b3) 24030 (+13) 19419 (+13) 80.81% (+0.01%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#5066) 14 14 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

codacy-production[bot] avatar Jun 18 '25 21:06 codacy-production[bot]

For the frontend: https://github.com/DependencyTrack/frontend/pull/1283

ch8matt avatar Jun 19 '25 15:06 ch8matt

Hello, do you know why it failed ? https://github.com/DependencyTrack/dependency-track/actions/runs/16002835392/job/45141990386

ch8matt avatar Jul 01 '25 17:07 ch8matt