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

on:
workflow_dispatch:
push:
branches:
- main

jobs:
dependency_track:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Enable Corepack
run: corepack enable
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Generate SBOM
run: yarn dlx -q @cyclonedx/yarn-plugin-cyclonedx -o sbom.json
- name: Upload CycloneDx bom to dependency track
uses: DependencyTrack/gh-upload-sbom@v3
with:
serverhostname: ${{ secrets.DEPENDENCY_TRACK_SERVER_HOSTNAME }}
apikey: ${{ secrets.DEPENDENCY_TRACK_API_KEY }}
project: 'c22c33e7-cf08-477f-a337-2afddac184d0'
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 hardcoded project UUID should be moved to a secret or environment variable to improve maintainability and security. Consider using ${{ secrets.DEPENDENCY_TRACK_PROJECT_ID }} instead.

Suggested change
project: 'c22c33e7-cf08-477f-a337-2afddac184d0'
project: ${{ secrets.DEPENDENCY_TRACK_PROJECT_ID }}

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