-
Notifications
You must be signed in to change notification settings - Fork 74
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
Regex-based Exclusions #87
Comments
This is proposing a 3rd type of exclusion for scans. We currently have:
The new exclusion type which this would introduce would use a set of regular expressions, run against all strings found during a scan, to mark them as false positives. For example, if you have GitHub URLs in your code, especially links to specific revisions or to gists, those will often get flagged as matches. So with this feature, you could add an exclusion pattern to explicitly allow links from github.com. One particular challenge of this feature is that it may need to include context around the matches. Let's look at a real world example:
|
+1, this will be on ongoing challenge with many of our repositories as they frequently include updates with URLs containing various hash strings |
Implemented via #192 |
Feature Request
Is your feature request related to a problem? Please describe.
To avoid noise in a scan, we'd like to provide exclusions using regular expressions on the contents of files.
Describe the solution you'd like
An exclusions file that can contain the regular expression exclusion rules.
For example, to ignore a git hash in a url:
'([ =''/"]+)[a-z0-9]{40}([/''" ])?$'
Describe alternatives you've considered
Teachability, Documentation, Adoption, Migration Strategy
The text was updated successfully, but these errors were encountered: