-
Notifications
You must be signed in to change notification settings - Fork 88
CLOUDP-66895: Move snyk scanner to evergreen #311
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
Conversation
MihaiBojin
left a comment
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.
LGTM, a few nits.
| params: | ||
| working_dir: src/github.com/mongodb/mongocli | ||
| script: | | ||
| export SNYK_TOKEN=${snyk_token} |
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.
nit: export before set and also more exports below
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.
also, missing ""
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.
before because it's a secret, it's an evergreen thing do move these kind of expansions before the sets also for expansions we usually don't use quotes("") but I can try it
| set -Eeou pipefail | ||
| export GOROOT="${go_root}" | ||
| export PATH="./bin:$GOROOT/bin:$PATH" |
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.
is GOROOT needed?
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 left them because I'm not sure if snyk needs a working go env to run, if there's no GOROOT set go complains a lot, it has a default usually but that's not set on evergreen
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.
Yes, goroot is needed, test here without it
Proposed changes
Jira ticket: CLOUDP-66895
Checklist
make fmtand formatted my codeFurther comments