Added requirements for next evolution #4
This file contains hidden or 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
name: Track Dependencies | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
generate-sbom: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- 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' | |