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

Add support for delta between two CLI scans #120

Open
rob-dotmatics opened this issue May 20, 2022 · 0 comments
Open

Add support for delta between two CLI scans #120

rob-dotmatics opened this issue May 20, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rob-dotmatics
Copy link

rob-dotmatics commented May 20, 2022

We wanted to use snyk-delta in a Bitbucket pipeline to detect whether a Pull Request introduces new vulnerabilities. Because there are many different destination branches ('team/xyz', 'release/123' etc) we cannot simply use snyk test --json --print-dep | snyk-delta since the delta baseline is different depending on the destination branch of the PR.

It would be really useful to be able to run a script along the lines of:

snyk test --json --print-dep > snyk.json
git checkout $BITBUCKET_PR_DESTINATION_BRANCH
snyk test --json --print-dep > snyk-baseline.json
snyk-delta --input snyk.json --baselineJson snyk-baseline.json
@lili2311 lili2311 added the enhancement New feature or request label Jul 7, 2022
@lili2311 lili2311 self-assigned this Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants