Skip to content

Commit c1a7dc7

Browse files
committed
tmp test new vdb
Signed-off-by: Caroline Russell <[email protected]>
1 parent dc8ac15 commit c1a7dc7

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,53 @@ jobs:
3333
id-token: write
3434
steps:
3535
- uses: actions/checkout@v4
36+
3637
- name: Set up Python
3738
uses: actions/setup-python@v5
3839
with:
3940
python-version: '3.11'
41+
4042
- name: Set up Node.js
4143
uses: actions/setup-node@v3
4244
with:
4345
node-version: '20'
46+
4447
- name: Install dependencies
4548
run: |
4649
python3 -m pip install --upgrade pip
4750
python3 -m pip install setuptools wheel twine build
48-
- name: Create Release
49-
id: create_release
50-
if: startsWith(github.ref, 'refs/tags/')
51-
uses: softprops/action-gh-release@v1
52-
env:
53-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
5452
- name: Build
5553
run: |
5654
python3 -m build
55+
5756
- name: Publish package distributions to PyPI
5857
if: startsWith(github.ref, 'refs/tags/')
5958
uses: pypa/gh-action-pypi-publish@release/v1
59+
6060
- name: Setup nydus
6161
run: |
6262
curl -LO https://github.com/dragonflyoss/nydus/releases/download/v2.2.4/nydus-static-v2.2.4-linux-amd64.tgz
6363
tar -xvf nydus-static-v2.2.4-linux-amd64.tgz
6464
chmod +x nydus-static/*
6565
mv nydus-static/* /usr/local/bin/
6666
rm -rf nydus-static-v2.2.4-linux-amd64.tgz nydus-static
67+
68+
- name: Generate SBOM with cdxgen
69+
run: |
70+
npm install -g @cyclonedx/cdxgen
71+
cdxgen -t python -o bom.json . --profile research
72+
73+
- name: Create Release
74+
id: create_release
75+
if: startsWith(github.ref, 'refs/tags/')
76+
uses: softprops/action-gh-release@v2
77+
with:
78+
files: |
79+
bom.json
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
6783
- name: Set up QEMU
6884
uses: docker/setup-qemu-action@v3
6985
- name: Set up Docker Buildx
@@ -94,6 +110,7 @@ jobs:
94110
labels: ${{ steps.meta.outputs.labels }}
95111
cache-from: type=gha,scope=depscan
96112
cache-to: type=gha,mode=max,scope=depscan
113+
97114
- name: nydusify
98115
run: |
99116
nydusify convert --oci --oci-ref --source ghcr.io/owasp-dep-scan/depscan:master --target ghcr.io/owasp-dep-scan/depscan:master-nydus --prefetch-dir /opt/dep-scan

.github/workflows/snapshot_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
python -m venv .venv
3333
source .venv/bin/activate
3434
pip install .
35+
git clone https://github.com/AppThreat/vulnerability-db.git /home/runner/work/vdb
36+
cd /home/runner/work/vdb
37+
git checkout feature/cvss4
38+
pip install .
3539
3640
- name: Cache vdb
3741
id: cache-vdb

0 commit comments

Comments
 (0)