Skip to content

Commit

Permalink
add dependency track analysis CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Chrastina authored and Simply007 committed Sep 21, 2023
1 parent a5269be commit f22430f
Show file tree
Hide file tree
Showing 2 changed files with 6,326 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/dep-track.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Dependency track analysis"

on:
push:
pull_request:
schedule:
- cron: '0 18 * * 1'

jobs:
Deptrack-build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Install CycloneDX
run: dotnet tool install --global CycloneDX
- name: Create SBOM
run: dotnet CycloneDX .\Kontent.Ai.Delivery.sln -o ./cyclone
- name: Upload SBOM
uses: DependencyTrack/[email protected]
with:
serverHostname: ${{ secrets.DEPENDENCYTRACK_SERVER_URL }}
apiKey: ${{ secrets.DEPENDENCYTRACK_APIKEY }}
projectName: 'Delivery SDK .NET'
projectVersion: 'master'
bomFilename: "./cyclone/bom.xml"
autoCreate: true
Loading

0 comments on commit f22430f

Please sign in to comment.