Skip to content

codeintel: handle -insecure-skip-verify in SCIP endpoint detection#1012

Merged
Strum355 merged 2 commits into
mainfrom
nsc/insecure-scip-verify
Jul 26, 2023
Merged

codeintel: handle -insecure-skip-verify in SCIP endpoint detection#1012
Strum355 merged 2 commits into
mainfrom
nsc/insecure-scip-verify

Conversation

@Strum355

Copy link
Copy Markdown
Contributor

Previously, we were doing SCIP detection before parsing cli flags. As SCIP detection makes a HTTP request, this meant it wasnt configured with the (global 😬) API client flags

Test plan

Ran manually to confirm flag is picked up at the correct time with ✨ print statements ✨

@Strum355 Strum355 self-assigned this Jul 25, 2023
func parseAndValidateCodeIntelUploadFlags(args []string) (*output.Output, bool, error) {
if err := codeintelUploadFlagSet.Parse(args); err != nil {
return nil, err
return nil, false, err

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non-blocking: we default to "scip is not available", but it might make sense to flip the boolean and rename it into isLSIFRequired or something like that

@Strum355 Strum355 merged commit c0e74d1 into main Jul 26, 2023
@Strum355 Strum355 deleted the nsc/insecure-scip-verify branch July 26, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants