Skip to content

Support -insecure-skip-verify flag for LSIF upload

Warren Gifford requested to merge nsc/lsif-upload-insecureskipverify into main

Created by: Strum355

As we previously used a different API client as was provided in the src-cli codebase, we did not take into account the -skip-insecure-verify flag. This affected a customer as they used self-signed certs.

This PR passes the src-cli configured API client that honours the flag to the LSIF upload function that resides in sg/sg/lib. The only part of the API client that is consumed is the direct pass-through method, Do(...)

Related to https://github.com/sourcegraph/sourcegraph/pull/22399 and will require bumping go.mod here when it is merged.

cc @efritz for 👀 after PTO

Merge request reports

Loading