Skip to content
@blackducksca-workflow-samples

blackducksca-workflow-samples

Black Duck SCA Workflow Samples

Table of Contents

Overview

Live, executable samples using the Black Duck Security Scan Action with Black Duck SCA

Workflow Samples using Action

How To? Details Workflow Results Status
Scan repository with build as a pre-step (Recommended) This recommended method ensures SAST analysis on compiled code and artifacts through a pre-build step for comprehensive vulnerability detection Workflow Results Build Status
Scan repository in an environment where build is not an option This option is less accurate and should be used when you can't build your repository Workflow Results Build Status
PR Comments For each new vulnerable component that the developer introduces with his/her changes, this integration is capable of adding a comment to the pull request. PR comments enable the developer to quickly view, understand and fix the issue before merging the pull request
Expected Result: FAIL
Workflow Results Build Status
Create Automatic FixPRs Fix PR feature automatically creates PRs for vulnerable components found in the scan. This sample shows how you can configure the fix PR feature Workflow Results Build Status
Generate Sarif Reports This sample shows how you can create a SARIF file for SCA issues found in the scan Workflow Results Build Status
Import issues into GitHub Advanced Security This sample shows how you can post SCA issues found in the scan to Code Scanning tab in GitHub Advanced Security Workflow Results Build Status
Build Break The ability to break or not break a build when policy violations are found is configurable. This sample shows you how to configure the build break options.
Expected Result: FAIL
Workflow Results Build Status
Passing Detect tool arguments from Black Duck Sca scans To leverage advanced SCA features, you need to pass options to Detect. This sample shows how you can configure Detect options Workflow Results Build Status
Run scans asynchronously to avoid holding up the pipeline during scanning By default, the pipeline is held until the scan finishes. You can configure the workflow in such a way where the pipeline doesn't wait for the scan to finish and returns immediately after kicking off the scan. Note that post scan options are not triggered when you choose to not wait for the scan to finish Workflow Results Build Status
Simplified workflow using default configurations for beginners Basic workflow demonstrating all Black Duck SCA features with default configurations. Ideal for beginners to explore features quickly Workflow Results Build Status
Detailed workflow with full configurations for advanced users Comprehensive workflow demonstrating all Black Duck SCA capabilities with full configurations. Ideal for advanced users requiring granular control and customization capabilities Workflow Results Build Status

Workflow Samples using CLI

How To? Details Workflow Results Status
Scan repository with build as a pre-step (Recommended) This recommended method ensures SAST analysis on compiled code and artifacts through a pre-build step for comprehensive vulnerability detection Workflow Results Build Status

Documentation

Using the Black Duck Security Scan Action with Black Duck SCA Documentation

Popular repositories Loading

  1. .github .github Public

  2. full-scan full-scan Public

    HTML

  3. pr-comments pr-comments Public

    HTML

  4. automatic-fixpr automatic-fixpr Public

    HTML 1

  5. sarif-generation sarif-generation Public

    HTML

  6. build-break build-break Public

    HTML

Repositories

Showing 10 of 12 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…