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

fix: use remediation to calculate fail-on arg #900

Merged
merged 1 commit into from
Dec 10, 2019

Conversation

gitphill
Copy link
Contributor

  • Ready for review
  • Follows CONTRIBUTING rules
  • Reviewed by Snyk internal team

What does this PR do?

Use remediation object when calculating fail-on exit code.

How should this be manually tested?

snyk test --fail-on=<all|upgradable|patchable>

Any background context you want to provide?

Response to customer confusion over exit code and messages shown in CLI

What are the relevant tickets?

BST-1094

@gitphill gitphill requested a review from a team December 10, 2019 17:05
@gitphill gitphill self-assigned this Dec 10, 2019
@ghost ghost requested review from dkontorovskyy and lili2311 December 10, 2019 17:05
@gitphill gitphill force-pushed the fix/fail-on-remediation-advice-only branch from cb43c83 to 1164ef3 Compare December 10, 2019 18:22
Adjusted logic for calculating shouldFail using remediation object
instead of isPatchable, isPinnable and isUpgradable
@gitphill gitphill force-pushed the fix/fail-on-remediation-advice-only branch from 1164ef3 to cf71309 Compare December 10, 2019 19:01
@gitphill gitphill merged commit 0e8bfb1 into master Dec 10, 2019
@gitphill gitphill deleted the fix/fail-on-remediation-advice-only branch December 10, 2019 19:36
@snyksec
Copy link

snyksec commented Dec 11, 2019

🎉 This PR is included in version 1.258.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants