-
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 init-script argument to CLI for gradle #1647
Conversation
9c84820
to
b84486b
Compare
0b3764c
to
f4dc37f
Compare
init-script is part of gradle and is used for certain use cases such as private artifact inventories. This is required for reachability in order to get the classpath required for building the call graph. Upgrades snyk-gradle-plugin to v3.13.0
f4dc37f
to
859f71d
Compare
Expected release notes (by @juanamari94) features:
|
@@ -179,6 +181,7 @@ export type SupportedUserReachableFacingCliArgs = | |||
| 'reachable-vulns' | |||
| 'reachable-timeout' | |||
| 'reachable-vulns-timeout' | |||
| 'init-script' |
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.
So you don't need to pass this option, it'll just be picked from the global options
?
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.
I'm not quite certain what you mean. Should I remove it then? As far as I understand it's better to have types set here for documentation concerns.
This PR was submitted by @pwnslinger, this pull request was opened because CircleCI is unable to pull a forked repository. Credit where it's due, this fix was created by @pwnslinger as well.
What does this PR do?
init-script is part of gradle and is used for certain use cases such as private artifact inventories.
This is required for reachability in order to get the classpath required for building the call graph.
How should this be manually tested?
Using a gradle project, create a file
init.gradle
for example and runsnyk test -d --file=./build.gradle --insecure --severity-threshold=medium --reachable --init-script=init.gradle
or
snyk monitor -d --file=./build.gradle --insecure --severity-threshold=medium --reachable --init-script=init.gradle
Any background context you want to provide?
We need the inner gradle commands of the java call graph builder to succeed in order to retrieve the classpath that allows us to get a call graph from the project.
What are the relevant tickets?
https://snyksec.atlassian.net/browse/FLOW-649