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

feat: use code-client-go to create and extend bundle [IDE-175] #455

Merged
merged 7 commits into from
Mar 26, 2024

Conversation

teodora-sandu
Copy link
Contributor

@teodora-sandu teodora-sandu commented Mar 8, 2024

Description

Starts using the code-client-go library for uploading and analyzing Snyk Code files with ignores. Updates to the latest code-client-go as a result and includes the bundle creation/extension of the files in the workspace.

Tested in IntelliJ by running make build-debug in snyk-ls and make build in the CLI , then changing the path to the CLI in IntelliJ. I enabled the snykCodeConsistentIgnores feature flag and the snyk.preview.snyk.code.ls.enabled registry flag, then opened IntelliJ on https://github.com/snyk/target-service

Also added smoke tests, which I was able to run in my IDE. See screenshot for proof of passing. The token was a service account token created for our new test org.

Checklist

  • Tests added and all succeed
  • Linted
  • README.md updated, if user-facing
  • License file updated, if new 3rd-party dependency is introduced

🚨After having merged, please update the CLI go.mod to pull in latest language server.

Screenshots / GIFs

Screenshot 2024-03-15 at 15 22 47

Screenshot 2024-03-25 at 17 19 02

@CLAassistant
Copy link

CLAassistant commented Mar 8, 2024

CLA assistant check
All committers have signed the CLA.

@teodora-sandu teodora-sandu changed the base branch from main to refactor/sarif-converter March 8, 2024 15:03
Copy link
Contributor

@cat2608 cat2608 left a comment

Choose a reason for hiding this comment

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

Tested it locally with IntelliJ and FF enabled

@teodora-sandu teodora-sandu merged commit d7816c3 into main Mar 26, 2024
11 checks passed
@teodora-sandu teodora-sandu deleted the feat/code-client-go branch March 26, 2024 13:53
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