Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Regex on Policy PURL #2144

Closed
2 tasks done
BlythMeister opened this issue Nov 11, 2022 · 4 comments · Fixed by #2334
Closed
2 tasks done

Support Regex on Policy PURL #2144

BlythMeister opened this issue Nov 11, 2022 · 4 comments · Fixed by #2334
Labels
Milestone

Comments

@BlythMeister
Copy link

Current Behavior

Condition PURL is not match .*myCompayName.*

Proposed Behavior

Do not match on compoents which have a PURL patch

Checklist

@nscuro nscuro added p3 Nice-to-have features good first issue labels Nov 21, 2022
@malice00
Copy link
Contributor

This behavior should already be possible, you just need to change the value you are matching against! Currently in the code, a contains is done on the purl, so changing your input to 'myCompanyName' (so without the RegEx-Characters) should give you the result you are looking for.
Generally though, I admit RegEx would be a nice addition. I'll give this a try.

@BlythMeister
Copy link
Author

Yeah I am more looking for checking multiple things .*(x|y|z).* for example
At the moment I need multiple rules and use an "Any" But then also means you can't pair with other conditions for an "And"

@malice00
Copy link
Contributor

Understood. Just wanted to let you know that if you wanted exactly your described case, you could do it without a fix. :-)

malice00 added a commit to malice00/dependency-track that referenced this issue Jan 28, 2023
@nscuro nscuro added this to the 4.8 milestone Jan 28, 2023
@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 28, 2023
stephan-wolf-ais pushed a commit to AISAutomation/dependency-track that referenced this issue Mar 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants