Skip to content

Automatically update python client (ref: Cosmo-Tech/cosmotech-api@c47… #36

Automatically update python client (ref: Cosmo-Tech/cosmotech-api@c47…

Automatically update python client (ref: Cosmo-Tech/cosmotech-api@c47… #36

name: Track Dependencies
on:
workflow_dispatch:
push:
branches:
- master
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: '5494feb7-3a34-458a-96f7-1892b6364dd0'
bomfilename: 'sbom.json'