Skip to content

cloudbees-io/blackduck-sca-scan-dependency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Cloudbees action: Scan with Black Duck SCA

Use this action to scan repositories for dependency vulnerabilities with the Black Duck Software Composition Analysis (SCA) scanner.

Scanner information

The Black Duck SCA scanner architectural components are:

  • Client-side: The Black Duck Detect scanning tool, the Signature Scanner command line tool, and the REST API.

  • Server-side: The Black Duck server.

  • Data center: The Black Duck KnowledgeBase open-source software database.

The scanning process is as follows:

  1. The Black Duck Detect tool is used to authenticate and initiate the code scan.

  2. Codebases are scanned on the client side.

  3. The scan data is uploaded to the Black Duck server with the Detect tool. The completed scan data does not contain any source code, to maintain your code security. The completed scan contains only file and directory signatures, and information derived from package management files.

  4. The scan data is sent to the Black Duck KnowledgeBase, and open source components in your code are matched and identified. The matching/identification process is based on your package manager data and SHA1 hashes created by the Signature Scanner when it scans your files and directories.

  5. The REST API is used to fetch the bearer token and retrieve the scanning results.

  6. The matched open source components are reported as a viewable Bill of Materials that contains the associated security, licensing, and operational risks of the discovered components.

Note
For more information about the Black Duck SCA scanner, refer to the product documentation.

Inputs

Table 1. Input details
Input name Data type Required? Description

server-url

String

Yes

The Black Duck server URL.

api-token

String

Yes

The Black Duck client secret.

ref

String

Yes

Specify the ref to be checked out and archived.

project-name

String

No

The Black Duck project name.

project-version

String

No

The Black Duck project version.

detect-cli-params

String

No

Usage examples

Usage examples

The following is a basic usage example for this action:

      - name: Scan with Black Duck SCA
        uses: https://github.com/cloudbees-io/blackduck-sca-scan-dependency@v2
        with:
          server-url: ${{ vars.BLACK_DUCK_URL }}
          api-token: ${{ secrets.BLACK_DUCK_TOKEN }}
          ref: main

In the following example, the Black Duck Detect properties logging.level.detect and blackduck.offline.mode are specified:

      - name: Scan with Black Duck SCA with params
        uses: https://github.com/cloudbees-io/blackduck-sca-scan-dependency@v2
        with:
          server-url: ${{ vars.BLACK_DUCK_URL }}
          api-token: ${{ secrets.BLACK_DUCK_TOKEN }}
          ref: main
          project-name: 'my-project'
          project-version: '0.0.1'
          detect-cli-params: '--logging.level.detect=DEBUG --blackduck.offline.mode=false'

License

This code is made available under the MIT license.

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •