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

on:
workflow_dispatch:
push:
branches:
- master

jobs:
dependency_track:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v5
- name: Install generator
run: |
npm install --global @cyclonedx/cyclonedx-npm
- name: Install project dependencies
run: npm install
- name: Generate BOM
run: cyclonedx-npm --mc-type library -o sbom.json
- name: Upload BOM to Dependency Track
uses: DependencyTrack/gh-upload-sbom@v3
with:
serverhostname: ${{ secrets.DEPENDENCY_TRACK_SERVER_HOSTNAME }}
apikey: ${{ secrets.DEPENDENCY_TRACK_API_KEY }}
project: 'd15fd01c-3d8b-42d4-a83a-ce9a5d95d72e'
Copy link

Copilot AI Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The project UUID is hardcoded in the workflow file. Consider storing this sensitive identifier as a repository secret (e.g., DEPENDENCY_TRACK_PROJECT_UUID) to avoid exposing it in the codebase.

Suggested change
project: 'd15fd01c-3d8b-42d4-a83a-ce9a5d95d72e'
project: ${{ secrets.DEPENDENCY_TRACK_PROJECT_UUID }}

Copilot uses AI. Check for mistakes.
bomfilename: 'sbom.json'