-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a manual build process to introduce SBOM generation (#27)
- Loading branch information
1 parent
2b7d507
commit 476b50a
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Python build | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Python build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install -y requirements-dev.txt | ||
- name: Generate SBOM | ||
run: cyclonedx-py --e --format json -o cyclonedx-sbom.json | ||
|
||
- name: Convert SBOM | ||
uses: duosecurity/duo_client_python/.github/actions/sbom-convert@master | ||
|
||
- name: Build | ||
run: python -m build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
flake8 >= 7.0.0 | ||
requests >= 2.32.0 | ||
setuptools >= 70.0.0 | ||
cyclonedx-bom == 3.11.7 |