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

Support for arbitrary file upload in server mode #1656

Open
ianling opened this issue Feb 25, 2025 · 2 comments
Open

Support for arbitrary file upload in server mode #1656

ianling opened this issue Feb 25, 2025 · 2 comments

Comments

@ianling
Copy link

ianling commented Feb 25, 2025

It would be useful for me if cdxgen supported arbitrary file uploads in server mode. For example, uploading a package.json file from a Javascript project, or a requirements.txt file from a Python project. Essentially, skipping the git clone and file searching steps and instead being provided one or more files directly.

@prabhu
Copy link
Collaborator

prabhu commented Feb 25, 2025

Sounds scary to add this to cdxgen server directly. You can always upload first and run cdxgen with path argument. Any issues with that.

@ianling
Copy link
Author

ianling commented Feb 26, 2025

It doesn't seem any more scary to me at a glance than the cdxgen server cloning an arbitrary git repo. I can't imagine anyone is running cdxgen server exposed to the internet.

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

No branches or pull requests

2 participants