Skip to content

Commit 55c9478

Browse files
committed
add GitHub Actions workflow to track and upload dependency BOM
1 parent b399f42 commit 55c9478

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Track Dependencies
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'release/v4-onprem'
8+
9+
jobs:
10+
dependency_track:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up JDK
15+
uses: actions/setup-java@v4
16+
with:
17+
distribution: 'temurin'
18+
java-version: '23'
19+
- name: Setup Gradle
20+
uses: gradle/actions/setup-gradle@v4.4.1
21+
with:
22+
cache-disabled: true
23+
- name: Track dependencies
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
run: ./gradlew cyclonedxBom
27+
- name: Upload CycloneDX BOM
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: cosmotech-api-bom
31+
path: build/reports/cosmotech-api-bom.xml
32+
overwrite: true
33+
- name: Upload cyclonedx bom to dependency
34+
uses: DependencyTrack/gh-upload-sbom@v3
35+
with:
36+
serverhostname: ${{ secrets.DEPENDENCY_TRACK_SERVER_HOSTNAME }}
37+
apikey: ${{ secrets.DEPENDENCY_TRACK_API_KEY }}
38+
project: 'c3a3a2fa-86a9-4961-be0d-4dbb5cea7176'
39+
bomfilename: 'build/reports/cosmotech-api-bom.xml'

0 commit comments

Comments
 (0)