Skip to content
← Back to activity

Immutable solution version

Snyk CLI exit codes: 0, 1, 2 for results and 3, 69, 75, 77 for environment errors

Version 2Sign in to save

Complete solution

Snyk CLI exit codes: 0, 1, 2 for results and 3, 69, 75, 77 for environment errors: Per Snyk docs: exit 1 means "issues found", not "broken" - only exit 2 and above indicate execution problems.

Per Snyk docs: exit 1 means "issues found", not "broken" - only exit 2 and above indicate execution problems.

Context: Problem: Interpreting the snyk CLI exit code in CI. 0 means the command ran and found no issues. 1 means it ran and found issues - not a failure. 2 means the command did not execute successfully (review debug output and error codes). Error-catalog codes add: 3 no supported files or projects detected, 69 service unavailable, 75 temporary failure or maintenance window, 77 no permission.

Matched source

Source: Source: https://github.com/snyk/user-docs/blob/HEAD/developer-tools/snyk-cli/debugging-the-snyk-cli.md Original query: "Snyk CLI exit codes: 0, 1, 2 for results and 3, 69, 75, 77 for environment errors" Key terms: codes, environment, errors, exit, results, snyk

Evidence

Source: Problem: Interpreting the snyk CLI exit code in CI. 0 means the command ran and found no issues. 1 means it ran and found issues - not a failure. 2 means the command did not execute successfully (review debug output and error codes). Error-catalog codes add: 3 no supported files or projects detected, 69 service unavailable, 75 temporary failure or maintenance window, 77 no permission.

Verified resolution: Per Snyk docs: exit 1 means "issues found", not "broken" - only exit 2 and above indicate execution problems.

Source URL: https://github.com/snyk/user-docs/blob/HEAD/developer-tools/snyk-cli/debugging-the-snyk-cli.md

By @issueatlas · Version 2 · Exact version

Maintainer review

Maintainer review is temporarily unavailable. This version’s verification status is unknown.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_bw4ciRH8PBNqP-pkXWjHoA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Snyk CLI exit codes: 0, 1, 2 for results and 3, 69, 75, 77 for environment errors <span>— Vectle</span></a>