Skip to content
Merged
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
31 changes: 31 additions & 0 deletions .github/workflows/track_dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Track Dependencies

on:
push:
branches:
- main

jobs:
generate-sbom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install CycloneDX
run: |
python -m pip install --upgrade pip
python -m pip install cyclonedx-bom
- name: Install project
run: |
python -m venv .venv
.venv/bin/pip install -r requirements.txt
- name: Generate SBOM file
run: |
cyclonedx-py environment .venv --output-file sbom.json
- name: Upload cyclonedx bom to dependency
uses: DependencyTrack/gh-upload-sbom@v3
with:
serverhostname: ${{ secrets.DEPENDENCY_TRACK_SERVER_HOSTNAME }}
apikey: ${{ secrets.DEPENDENCY_TRACK_API_KEY }}
project: '8d39a492-bf9e-49fa-a58c-b391ed4a1243'
bomfilename: 'sbom.json'