Skip to content

Specify ignored paths without specifying rulesets #757

@lewis-jackson-bots

Description

@lewis-jackson-bots

Is your feature request related to a problem? Please describe.

If you wish to ignore a path for SAST scanning, you must specify every single ruleset that you want to use.

rulesets: # required
  - rule1
  - rule2
  - ...
  - rule1000
ignore:
  - "e2e/**"
  - "tests/**"

The only way to get the ruleset names appears to be to manually transcribe them from this page.

The same issue would arise if I wanted to configure any single rule.

If any new rules are added, I won't know about them or see their results.

If I don't create any config, the behaviour out-of-the-box is for SAST to apply every rule possible. This makes the tool easy to setup.

Describe the solution you'd like
I want to be able to create a config file where I ignore a path without having to specify every rule.

ignore:
  - "e2e/**"
  - "tests/**"

This should ignore the directories e2e, and tests, but still apply every rule.

Describe alternatives you've considered
Scraping this page to build a list of every possible ruleset to build a config file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions