Skip to content

Commit

Permalink
Create dependency-check-sbom.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrodematteis authored Feb 11, 2025
1 parent 80b617b commit 6c9f8fa
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/dependency-check-sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Source Image SBOM - Dependency Check

on:
workflow_dispatch:
inputs:
src_repository:
description: 'Source Repository'
required: true
default: ''

jobs:
depchecktest:
runs-on: ubuntu-latest
name: depecheck_test
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: ${{ inputs.src_repository }}
- name: Build project with Maven
run: mvn clean install
- name: Depcheck
uses: dependency-check/Dependency-Check_Action@main
id: Depcheck
with:
project: 'test'
path: '.'
format: 'HTML'
out: 'reports' # this is the default, no need to specify unless you wish to override it
args: >
--failOnCVSS 7
--enableRetired
- name: Upload Test results
uses: actions/upload-artifact@master
with:
name: Depcheck report
path: ${{github.workspace}}/reports

0 comments on commit 6c9f8fa

Please sign in to comment.