Skip to content

Update Black Duck scan configuration options #38

Update Black Duck scan configuration options

Update Black Duck scan configuration options #38

Workflow file for this run

# example workflow for Black Duck SCA scans using the Black Duck Security Scan Action
# https://github.com/marketplace/actions/black-duck-security-scan
name: bd-ss-action
on:
push:
branches: [ main, master, develop, stage, release ]
pull_request:
branches: [ main, master, develop, stage, release ]
workflow_dispatch:
jobs:
blackduck:
runs-on: macos-latest
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: maven
- name: Maven Build
run: mvn -B -DskipTests package
- name: Black Duck SCA Scan
uses: blackduck-inc/black-duck-security-scan@v2
env:
DETECT_PROJECT_NAME: ${{ github.event.repository.name }}
with:
blackducksca_url: ${{ vars.BLACKDUCK_URL }}
blackducksca_token: ${{ secrets.BLACKDUCK_API_TOKEN }}
blackducksca_scan_full: true
blackducksca_scan_failure_severities: BLOCKER,CRITICAL,MAJOR
detect_search_depth: 4
mark_build_status: failure
include_diagnostics: true