Skip to content

Commit

Permalink
Add a manual build process to introduce SBOM generation (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronAtDuo authored Jun 18, 2024
1 parent 2b7d507 commit 476b50a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/python-build.yml
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
1 change: 1 addition & 0 deletions requirements-dev.txt
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

0 comments on commit 476b50a

Please sign in to comment.