-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add dependency track analysis CI pipeline
- Loading branch information
Showing
2 changed files
with
6,326 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.