ShiftLeftSecurity / sast-scan

Scan is a free & Open Source DevSecOps tool for performing static analysis based security testing of your applications and its dependencies. CI and Git friendly.
https://discord.gg/DCNxzaeUpd
Apache License 2.0
788 stars 112 forks source link

scan does not create comment in the merge request. #357

Open avnsiva opened 2 years ago

avnsiva commented 2 years ago

When trying to run a scan with the shift left test, its not updating the merge request in gitlab.com and self hosted Gitlab CE edition.

The yaml used is:

variables: GITHUB_TOKEN: $GITHUB_TOKEN GITLAB_TOKEN: $GITLAB_TOKEN SCAN_ANNOTATE_PR: "true"

scan: stage: test image: name: quay.io/shiftleft/scan-oss:latest script:

The results looks like:

[15:13:28] INFO Baseline file written to /builds/siva.ah/spring-boot-rest-example/reports/.sastscan.baseline
Security Scan Summary
╔════════════════════════╤══════════╤══════╤════════╤═════╤════════╗ ║ Tool │ Critical │ High │ Medium │ Low │ Status ║ ╟────────────────────────┼──────────┼──────┼────────┼─────┼────────╢ ║ Dependency Scan (java) │ 30 │ 50 │ 24 │ 7 │ ❌ ║ ╚════════════════════════╧══════════╧══════╧════════╧═════╧════════╝ Uploading artifacts for failed job Uploading artifacts... /builds/siva.ah/spring-boot-rest-example/reports/: found 7 matching files and directories Uploading artifacts as "archive" to coordinator... ok id=1958602230 responseStatus=201 Created token=gVeUsj1y Cleaning up project directory and file based variables 00:01 ERROR: Job failed: exit code 1

avnsiva commented 2 years ago

Am I getting something wrong here?

prabhu commented 2 years ago

@avnsiva Is this issue resolved?