Added queries to limit the scan scope via the --scope input param #34
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses issues:
You can now define queries (such as JQL for Jira, CQL for Confluence, GitHub search, Slack search or Zendesk search)
Python 3.6 introduced the
DeprecationWarning: Flags not at the start of the expressionwarning. The point is that the Python re now does not allow using inline modifiers not at the start of string. In Python 2.x, you can use your pattern without any problem and warnings as (?s) is silently applied to the whole regular expression under the hood. Since it is not always an expected behavior, the Python developers decided to produce a warning. In order to fix that, this PR modifies the regex ingestion behavior, so every-time a modifier is found not in the beginning of the regex, n0s1 will move it to the beginning.Sample queries to limit the scan scope
Scan all projects in Jira except MAR:
Scan only projects MAR and "Auto Service" in Jira:
Scan all pages from workspace KB in Confluence:
Scan only Slack messages with the word "database":
Scan only GitHub repos from the org spark1security with the word "action" in the name:
Scan only Zendesk tickets with the word "AWS" in the title: