Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion .github/workflows/deploy-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,38 @@ jobs:
echo "New tag will be: ${NEW_TAG}"
echo "source branch is ${{ github.ref_name }}"

# ----------------------------------------------
# Generate release security metadata
# ----------------------------------------------
- name: Set up Node.js
if: env.no_changes == 'false'
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install SBOM tools
if: env.no_changes == 'false'
run: |
npm install -g @cyclonedx/cdxgen
pip install owasp-depscan

- name: Download vulnerability database
if: env.no_changes == 'false'
env:
VDB_APP_ONLY_DATABASE_URL: ghcr.io/appthreat/vdbxz-app-extended:v6.7.x
run: vdb --download-image

- name: Generate SBOM and vulnerability report
if: env.no_changes == 'false'
run: |
cdxgen -t python .
depscan --bom bom.json
mkdir -p sbom-reports
cp bom.json sbom-reports/
for report in bom.vdr.json depscan-bom.json reports/*; do
[[ -f "$report" ]] && cp "$report" sbom-reports/
done

# ----------------------------------------------
# Auto commit toml file (only if version was bumped)
# ----------------------------------------------
Expand All @@ -210,7 +242,7 @@ jobs:
if: env.no_changes == 'false'
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*.gz,dist/*.whl"
artifacts: "dist/*.gz,dist/*.whl,sbom-reports/*"
artifactErrorsFailBuild: true
generateReleaseNotes: true
commit: develop
Expand Down