Skip to content

Conversation

@akudrinsky
Copy link
Collaborator

No description provided.

…r uploads

- Add scan metadata to scan_context when using --control-server:
  - scanned_files: files that were successfully parsed
  - failed_to_parse_files: files that failed to parse
  - not_found_files: files that don't exist
  - failed_servers: servers that failed to start (with command/args for stdio)

- Create redact.py module with centralized redaction logic:
  - redact_args: redacts flag values and file paths in CLI args
  - redact_traceback: removes absolute paths from tracebacks
  - redact_server: redacts server env vars, headers, URL params
  - redact_scan_result: redacts path-level error tracebacks

- Move get_relative_path to utils.py for path normalization

- Apply redaction in upload.py before sending to control server

- Add comprehensive tests for all redaction functions
Copy link
Contributor

@hemang-snyk hemang-snyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI tests are broken, please fix them before merging. The redaction piece looks good - thank you for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants