Skip to content

Commit dee70a2

Browse files
committed
ci: send dependencies to tracker
1 parent be61827 commit dee70a2

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Track Dependencies
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
dependency_track:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v5
15+
- name: Install generator
16+
run: |
17+
npm install --global @cyclonedx/cyclonedx-npm
18+
- name: Install project dependencies
19+
run: npm install
20+
- name: Generate BOM
21+
run: cyclonedx-npm --mc-type library -o sbom.json
22+
- name: Upload BOM to Dependency Track
23+
uses: DependencyTrack/gh-upload-sbom@v3
24+
with:
25+
serverhostname: ${{ secrets.DEPENDENCY_TRACK_SERVER_HOSTNAME }}
26+
apikey: ${{ secrets.DEPENDENCY_TRACK_API_KEY }}
27+
project: 'd15fd01c-3d8b-42d4-a83a-ce9a5d95d72e'
28+
bomfilename: 'sbom.json'

0 commit comments

Comments
 (0)