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
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.

Using a mutable tag (@V3) for the action reference poses security risks as the tag can be moved to point to different code. Consider pinning to a specific commit SHA or using an immutable tag for better security and reproducibility.

Suggested change
uses: DependencyTrack/gh-upload-sbom@v3
uses: DependencyTrack/gh-upload-sbom@e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2

Copilot uses AI. Check for mistakes.

with:
serverhostname: ${{ secrets.DEPENDENCY_TRACK_SERVER_HOSTNAME }}
apikey: ${{ secrets.DEPENDENCY_TRACK_API_KEY }}
project: 'c9e26ece-6f0c-4834-94c3-a20efd1d7fb7'
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 moving this to a repository secret or environment variable to avoid exposing internal project identifiers and improve configuration flexibility across environments.

Suggested change
project: 'c9e26ece-6f0c-4834-94c3-a20efd1d7fb7'
project: ${{ secrets.DEPENDENCY_TRACK_PROJECT_UUID }}

Copilot uses AI. Check for mistakes.

bomfilename: 'sbom.json'