Skip to content

[Feature] add option to ignore submodules #2045

@rantoniuk

Description

@rantoniuk

Is this feature missing in the latest version?

  • I'm using the latest release

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

It's great that the submodules are supported, but I would actually like to ignore submodules during the scans. This is because the changes for submodules should be normally managed in their own workflows, not in the target repository that is consuming them.

Currently I see in the logs:

Set 'fetch_additional_submodule_history: true' to fetch additional submodule history for: subm

Describe the solution you'd like?

I'd like to disable changed files detection in the paths defined by .gitmodules, e.g. ignore_submodules: true/false.

Describe alternatives you've considered?

I'm ignoring the submodule directory now via

files_ignore: |
  subA
  subB

but that doesn't improve the performance and it still shows the warning above. Also I need to maintain that list separately while it could be auto-populated from .gitmodules or from git submodule | awk '{print $2;}'.

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions