Skip to content

Commit 3a6fc77

Browse files
authored
Merge pull request #182 from Cosmo-Tech/DSE/track_dependencies_PROD-14602
Dse/track dependencies prod 14602
2 parents 91c586a + 57c5fe6 commit 3a6fc77

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Track Dependencies
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
dependency_track:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v5
15+
- name: Enable Corepack
16+
run: corepack enable
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
cache: 'yarn'
22+
- name: Generate SBOM
23+
run: yarn dlx -q @cyclonedx/yarn-plugin-cyclonedx -o sbom.json
24+
- name: Upload CycloneDx bom to dependency track
25+
uses: DependencyTrack/gh-upload-sbom@v3
26+
with:
27+
serverhostname: ${{ secrets.DEPENDENCY_TRACK_SERVER_HOSTNAME }}
28+
apikey: ${{ secrets.DEPENDENCY_TRACK_API_KEY }}
29+
project: 'c22c33e7-cf08-477f-a337-2afddac184d0'
30+
bomfilename: 'sbom.json'

0 commit comments

Comments
 (0)