-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: ci mode differentiating permanent errors Temporary failures might be treated differently from permanent failures in a CI context. A temporary network partition might be retried with an exponential backoff delay in a CI script. Such a temporary failure might even be skipped in the CI workflow, with assurance that security testing will be covered by Snyk monitors and reporting. This option gives more flexibility and self-determination in choosing security posture. In some cases landing a critical fix is more important than waiting for a network partition or temporary outage to resolve. This CI mode may be opted into by setting an environment variable SNYK_CI=1 when running the CLI. CI mode causes the following errors to terminate with a different exit code: - Authorization errors, including entitlement errors (HTTP 401 and 403), will exit code 77 (EX_NOPERM) - Other non-recoverable errors will exit code 69 (EX_UNAVAILABLE). This includes all other HTTP 4xx errors from Snyk APIs. Recoverable errors (network connection errors, HTTP 5xx) will exit code 2. The difference between CI and non-CI mode, is that the above errors will normally exit code 2. * feat: snyk_timeout_secs option Terminate CLI with exit code EX_UNAVAILABLE after a timeout, when set using SNYK_TIMEOUT_SECS=N environment variable, where N is the number of seconds the user is willing to wait for the command to complete.
- Loading branch information
Showing
7 changed files
with
57 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters