Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: exit code 0 if nothing is vulnerable
Improve exit code to help action `snyk fix` output. If `snyk test` failed => error If `snyk test` returned no vulnerable results => success If `snyk fix` had some errors and nothing was fixed => error If `snyk fix` fixed anyrying at all => success
- Loading branch information
Showing
3 changed files
with
86 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"vulnerabilities": [], | ||
"ok": true, | ||
"dependencyCount": 2, | ||
"org": "bananaq", | ||
"policy": "# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.\nversion: v1.19.0\nignore: {}\npatch: {}\n", | ||
"isPrivate": true, | ||
"licensesPolicy": {}, | ||
"packageManager": "pip", | ||
"ignoreSettings": null, | ||
"summary": "Tested 1 project, no vulnerable paths were found.", | ||
"filesystemPolicy": false, | ||
"filtered": { | ||
"ignore": [], | ||
"patch": [] | ||
}, | ||
"uniqueCount": 4, | ||
"projectName": "pip-app", | ||
"foundProjectCount": 23 | ||
} |
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