Skip to content

Commit

Permalink
feat: add SCM report test support [ZEN-668] (#4745)
Browse files Browse the repository at this point in the history
* chore: update code-client version

* feat: implement report functionality for SCM projects

* test: split report tests from regular snyk code tests

* test: refactor report tests, remove redundant mocked Sarif test

* test: add SCM report sample response and test

* fix: add project data to analysisContext

* fix: pass analysisContext to analyzeScmProject

* test: make exit code test name clearer

* chore: refactor analysis methods and data flow
  • Loading branch information
novalex authored Jul 19, 2023
1 parent b26548d commit 668e99c
Show file tree
Hide file tree
Showing 9 changed files with 825 additions and 345 deletions.
2 changes: 2 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,5 @@ ac6208df74be9a21f2d14caaaee8aec98195b336:test/fixtures/iac/terraform-plan/tf-pla
cba65a3a91c64db2ee92c87e5972602b6c959586:test/fixtures/sast/sample-analyze-folders-response.json:generic-api-key:3
6380d9d4147491cadee99113701516ebb8242836:src/cli/commands/test/iac-local-execution/parsers/hcl2json.js:generic-api-key:9827
c2de35484dcad696a6ee32f2fa317d5cfaffc133:test/fixtures/code/sample-analyze-folders-response.json:generic-api-key:3
dc5190fcfbbc315bab3ed99a14262242c55bf9b2:test/fixtures/sast/sample-analyze-scm-project-response.json:generic-api-key:4
0fb9746f823f48b2802269569e8575f4dfd3d95d:help/cli-commands/iac-test.md:snyk-api-token:219
95 changes: 78 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@sentry/node": "^7.34.0",
"@snyk/cli-interface": "2.12.0",
"@snyk/cloud-config-parser": "^1.14.5",
"@snyk/code-client": "^4.18.5",
"@snyk/code-client": "^4.19.0",
"@snyk/dep-graph": "^2.6.1",
"@snyk/docker-registry-v2-client": "^2.10.0",
"@snyk/fix": "file:packages/snyk-fix",
Expand Down
Loading

0 comments on commit 668e99c

Please sign in to comment.