sourcegraph / src-cli

Sourcegraph CLI
https://sourcegraph.com
Apache License 2.0
268 stars 58 forks source link

batch: Provide option to bypass uploading workspace files #1099

Open bplotnick opened 3 weeks ago

bplotnick commented 3 weeks ago

Uploading workspace files (including mounted files) runs the risk of uploading sensitive files like private keys. This was even called out in the original PR as a risk. There should be an option to bypass this.

Another option would be to only upload the filenames but not the file contents themselves. You could even have a .srcignore or something that would automatically skip these files

stristr commented 3 weeks ago

+1 to .srcignore— that would be an ideal implementation detail.