Source Code SBOM - Dependency Check #6
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
name: Source Code SBOM - Dependency Check | |
on: | |
workflow_dispatch: | |
inputs: | |
src_repository: | |
description: 'Source Repository' | |
required: true | |
default: '' | |
src_branch: | |
description: 'Branch' | |
required: false | |
default: '' | |
jobs: | |
depchecktest: | |
runs-on: ubuntu-latest | |
name: depecheck_test | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ inputs.src_repository }} | |
ref: ${{ inputs.src_branch }} | |
#- name: Build project with Maven | |
# run: mvn package -Dmaven.test.skip=true | |
#run: mvn clean build | |
- 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 |