Ostorlab / oxo

OXO is a security scanning orchestrator for the modern age.
https://oxo.ostorlab.co
Apache License 2.0
529 stars 52 forks source link

Add support CI_SCAN for a link. #837

Closed amine3 closed 1 week ago

amine3 commented 1 week ago

This PR adds support in the CLI of the CI_SCAN for the asset type link.

Command example: ostorlab --api-key APIKEY ci-scan run --title test1 --api-schema /tmp/schema.txt --scan-profile=full_web_scan link --url https://google.com

Output:

image

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 48.76033% with 62 lines in your changes missing coverage. Please review.

Project coverage is 62.62%. Comparing base (36035ba) to head (c8f00d8). Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
src/ostorlab/cli/ci_scan/run/assets/link.py 55.07% 31 Missing :warning:
src/ostorlab/apis/scan_create.py 27.27% 24 Missing :warning:
src/ostorlab/cli/ci_scan/run/run.py 50.00% 4 Missing :warning:
src/ostorlab/cli/ci_scan/run/assets/__init__.py 0.00% 2 Missing :warning:
src/ostorlab/utils/defintions.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #837 +/- ## ========================================== - Coverage 62.73% 62.62% -0.11% ========================================== Files 341 342 +1 Lines 14307 14426 +119 ========================================== + Hits 8975 9034 +59 - Misses 5332 5392 +60 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.