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

File filtering with local clone #1288

Closed
nleach999 opened this issue Oct 18, 2023 · 1 comment
Closed

File filtering with local clone #1288

nleach999 opened this issue Oct 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@nleach999
Copy link
Contributor

Describe the problem

For teams that work on non-Windows OS as their development platform, they can make files that have names that are not compatible with the Windows OS. When submitting a SAST scan, the clone executes on Windows and fails due to invalid filenames,

Files with invalid characters like "<" or ">" are part of the problem. Windows also reserves names like "prn", "con", "lpt", and "aux" so that they are also invalid.

Proposed solution

Add a feature that can work in conjunction with CxFlow's local checkout where filename globs can be defined. CxFlow does the following:

  1. Clones the repo that has code to be submitted for scanning.
  2. Removes files that match any of the glob parameters (like <, aux, etc)
  3. Submits the Windows-compatible files for scan.

Additional details

This affects users that are using CxFlow with webhooks.

@nleach999 nleach999 added the enhancement New feature or request label Oct 18, 2023
@itsKedar
Copy link
Contributor

itsKedar commented Jun 5, 2024

Added docs for it in 1.7.01

@itsKedar itsKedar closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants