-
-
Notifications
You must be signed in to change notification settings - Fork 127
[CRAVEX] SCA Integrations: OWASP dep-scan #1825
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
d30e74d
Add GitHub workflow to generate SBOM with OWASP dep-scan
tdruez b60aaed
Debug GitHub workflow for OWASP dep-scan
tdruez f84035f
Debug GitHub workflow for OWASP dep-scan
tdruez 8b6110a
Debug GitHub workflow for OWASP dep-scan
tdruez 4c61e96
Debug GitHub workflow for OWASP dep-scan
tdruez ef62b91
Debug GitHub workflow for OWASP dep-scan
tdruez 8afe73f
Debug GitHub workflow for OWASP dep-scan
tdruez 29101bd
Debug GitHub workflow for OWASP dep-scan
tdruez 067965d
Debug GitHub workflow for OWASP dep-scan
tdruez 83e30eb
Debug GitHub workflow for OWASP dep-scan
tdruez 98f3577
Debug GitHub workflow for OWASP dep-scan
tdruez 1aa93ea
Debug GitHub workflow for OWASP dep-scan
tdruez 52d5d6e
Debug GitHub workflow for OWASP dep-scan
tdruez 2860501
Debug GitHub workflow for OWASP dep-scan
tdruez da75f7f
Debug GitHub workflow for OWASP dep-scan
tdruez 9ad9579
Debug GitHub workflow for OWASP dep-scan
tdruez 680fe09
Debug GitHub workflow for OWASP dep-scan
tdruez 88433f9
Debug GitHub workflow for OWASP dep-scan
tdruez 0283084
Add entry in the FAQ about OWASP dep-scan support
tdruez 4ab1618
Add unit test for the OWASP dep-scan SBOM support
tdruez f1bc54b
Fix code format
tdruez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: Generate SBOM with OWASP dep-scan and load into ScanCode.io | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| env: | ||
| IMAGE_REFERENCE: "python:3.13.0-slim" | ||
|
|
||
| jobs: | ||
| generate-and-load-sbom: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Prepare writable reports directory | ||
| run: | | ||
| mkdir -p reports | ||
| chmod 777 reports | ||
|
|
||
| - name: Generate SBOM with OWASP dep-scan | ||
| run: | | ||
| docker run --rm -v $PWD:/app \ | ||
| ghcr.io/owasp-dep-scan/dep-scan depscan \ | ||
| --src ${{ env.IMAGE_REFERENCE }} \ | ||
| --reports-dir /app/reports \ | ||
| --report-name depscan-sbom.cdx.json | ||
|
|
||
| - run: ls -la reports | ||
|
|
||
| - name: Upload SBOM as GitHub Artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: depscan-sbom | ||
| path: "reports/depscan-sbom.cdx.json" | ||
| retention-days: 20 | ||
|
|
||
| # - name: Import SBOM into ScanCode.io | ||
| # uses: aboutcode-org/scancode-action@main | ||
| # with: | ||
| # pipelines: "load_sbom" | ||
| # inputs-path: "depscan-sbom.cdx.json" | ||
| # | ||
| # - name: Verify SBOM Analysis Results in ScanCode.io | ||
| # shell: bash | ||
| # run: | | ||
| # scanpipe shell --command "from scanpipe.models import DiscoveredPackage, DiscoveredDependency; package_manager = DiscoveredPackage.objects; assert package_manager.count() > 340; assert package_manager.vulnerable().count() == 0; assert DiscoveredDependency.objects.count() == 0" | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.