File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 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'
You can’t perform that action at this time.
0 commit comments