Update README.md #14
This file contains 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
name: OWASP dep-scan demo | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
scan: | |
name: Create SBOM of .NET solution | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install and set up ORAS | |
uses: oras-project/setup-oras@v1 | |
- name: Download vulnerability DB and dep-scan | |
run: | | |
oras pull ghcr.io/appthreat/vdb:v5 -o $RUNNER_TEMP | |
oras pull ghcr.io/appthreat/depscan:v4 -o $RUNNER_TEMP | |
chmod +x $RUNNER_TEMP/depscan | |
- name: Run depscan | |
env: | |
FETCH_LICENSE: true | |
run: | | |
cd src | |
$RUNNER_TEMP/depscan --src ReactAndAspNetCoreApp.sln --reports-dir $RUNNER_TEMP/reports --csaf --profile license-compliance | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: $RUNNER_TEMP/reports |