Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1622 #1633

Merged
merged 6 commits into from
Feb 14, 2025
Merged

Fixes #1622 #1633

merged 6 commits into from
Feb 14, 2025

Conversation

prabhu
Copy link
Collaborator

@prabhu prabhu commented Feb 13, 2025

Fixes #1622 with an additional duplicate check. Also enhanced the validator to check the purl type of dependencies.

node /Volumes/Work/CycloneDX/cdxgen/bin/cdxgen.js -o bom.json $(pwd)
Scanning /Volumes/Work/sandbox/benchmarking/SecObserve
Performing babel-based package usage analysis with source code at /Volumes/Work/sandbox/benchmarking/SecObserve
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/frontend/package-lock.json
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/frontend/lib/runtime-env-cra/package-lock.json
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/end_to_end_tests/package-lock.json
Found 697 npm packages at /Volumes/Work/sandbox/benchmarking/SecObserve
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/backend/poetry.lock
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/backend/pyproject.toml for dependencies and groups information.
cdxgen will now attempt to generate an SBOM for 'build' lifecycle phase for Python. This would take some time ...
To speed up this step, invoke cdxgen from within a virtual environment with all the dependencies installed.
Alternatively, pass the argument '--lifecycle pre-build' to generate a faster but less precise SBOM.
Executing /Users/prabhu/miniconda3/bin/python -m pip install --disable-pip-version-check -r /Volumes/Work/sandbox/benchmarking/SecObserve/mkdocs_requirements.txt
About to construct the pip dependency tree based on /Volumes/Work/sandbox/benchmarking/SecObserve/mkdocs_requirements.txt. Please wait ...
Executing /Users/prabhu/miniconda3/bin/python -m pip install --disable-pip-version-check -r /Volumes/Work/sandbox/benchmarking/SecObserve/backend/poetry_requirements.txt
About to construct the pip dependency tree based on /Volumes/Work/sandbox/benchmarking/SecObserve/backend/poetry_requirements.txt. Please wait ...
Found 225 python packages at /Volumes/Work/sandbox/benchmarking/SecObserve
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/.github/workflows/scorecard.yml
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/.github/workflows/scan_sca_current.yml
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/.github/workflows/publish_docs.yml
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/.github/workflows/generate_sboms.yml
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/.github/workflows/check_vulnerabilities.yml
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/.github/workflows/check_licenses_dev.yml
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/.github/workflows/check_frontend.yml
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/.github/workflows/check_backend.yml
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/.github/workflows/build_push_release.yml
Parsing /Volumes/Work/sandbox/benchmarking/SecObserve/.github/workflows/build_push_dev.yml
Found 14 GitHub action packages at /Volumes/Work/sandbox/benchmarking/SecObserve
Obtained 936 components and 925 dependencies after dedupe.
===== WARNINGS =====
[
  "The parent package 'pkg:npm/secobserve@1.28.0' (type npm) depends on the child package 'pkg:pypi/secobserve@latest' (type pypi). This is a bug in cdxgen if this project is not a monorepo."
]

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu
Copy link
Collaborator Author

prabhu commented Feb 13, 2025

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu
Copy link
Collaborator Author

prabhu commented Feb 13, 2025

Happy Valentine's Day ❤️

@prabhu prabhu added Ready for QA bug Something isn't working labels Feb 13, 2025
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu prabhu merged commit f8a3129 into master Feb 14, 2025
28 of 29 checks passed
@prabhu prabhu deleted the fix/issue-1622 branch February 14, 2025 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Ready for QA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schema validation failed due to duplicates
1 participant