Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/candrews/snyk-test-case-2242
https://github.com/candrews/snyk-test-case-2242
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/candrews/snyk-test-case-2242
- Owner: candrews
- Created: 2021-09-09T22:47:12.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-09T22:48:01.000Z (over 3 years ago)
- Last Synced: 2024-10-26T08:47:39.135Z (about 2 months ago)
- Language: Java
- Size: 59.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minimal test case reproducing [snyk test incorrectly returns status 0 or 1 when "Failed to get dependencies" error occurs](https://github.com/snyk/snyk/issues/2242)
## Reproduction steps
Clone this repository then, from the cloned path:
1. `npm install snyk@latest -g`
2. `snyk test --all-projects && echo $?`### Actual results
```
$ snyk test --all-projects && echo $?
✗ 1/3 potential projects failed to get dependencies.
/home/candrews/projects/snyk-test/react-app/package.json:
Missing node_modules folder: we can't test without dependencies.
Please run 'npm install' first.Testing /home/candrews/projects/snyk-test...
Organization: candrews
Package manager: gradle
Target file: build.gradle
Project name: snyk-test
Open source: no
Project path: /home/candrews/projects/snyk-test
Licenses: enabled✔ Tested 45 dependencies for known issues, no vulnerable paths found.
Next steps:
- Run `snyk monitor` to be notified about new related vulnerabilities.
- Run `snyk test` as part of your CI/test.-------------------------------------------------------
Testing /home/candrews/projects/snyk-test...
Organization: candrews
Package manager: npm
Target file: package-lock.json
Project name: package.json
Open source: no
Project path: /home/candrews/projects/snyk-test
Licenses: enabled✔ Tested 3 dependencies for known issues, no vulnerable paths found.
Next steps:
- Run `snyk monitor` to be notified about new related vulnerabilities.
- Run `snyk test` as part of your CI/test.Tested 2 projects, no vulnerable paths were found.
Exit status: 0
```### Expected results
Same as the actual results, except ending with:
```
Exit status: 3
```