-
Notifications
You must be signed in to change notification settings - Fork 567
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/add snyk code test support #1640
Conversation
a6ffbaa
to
fd522b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bb2d63f
to
9b0df5c
Compare
* code-client support * configs to use the code-client proxy
* we call snyk codes to analize our project and expecting to get a response that includes sarif object.
* creating new formating schema for snyk code scanning
aba5d88
to
82ce5c8
Compare
The test Is failing because of a security issue we have in the library that was added to this PR It is ok to review this or. we won't merge before this issue is fixed :) and we are working on it |
* adjusting the flow so we won't have redundant data manipulations in case we are in test code flow
* we want to filter our sarif response by security only
* the upgrade removed the usage of lodash within code-client. * updating analyzeFolders's arguments * adjust tests
82ce5c8
to
2fa4e6b
Compare
Expected release notes (by @ArturSnyk) features: fixes: others (will not be included in Semantic-Release notes):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just putting a blocker for ecosys arch to review
@@ -2,5 +2,6 @@ | |||
"API": "https://snyk.io/api/v1", | |||
"devDeps": false, | |||
"PRUNE_DEPS_THRESHOLD": 40000, | |||
"MAX_PATH_COUNT": 1500000 | |||
"MAX_PATH_COUNT": 1500000, | |||
"CODE_CLIENT_PROXY_URL": "http://deeproxy.dev.snyk.io" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't reference dev in this file? (I see API is pointing at production not dev)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
closed in favor of #1664 |
What does this PR do?
This introduces an mpv usage for snyk code.
Where should the reviewer start?
you should have the snykcode cli's ff,
and run it with
snyk code test
orsnyk code test <project_path>
How should this be manually tested?
snyk code test
orsnyk code test <project_path>
Any background context you want to provide?
we will be adding more functionality around this flow, more error handling, analytics, and output functionality, later on
What are the relevant tickets?
https://snyksec.atlassian.net/browse/COD-123
Screenshots
Additional questions