Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Overview

CircleCi is a continuous integration development practice that is used by software teams allowing them to build, test and deploy applications on multiple platforms in an easier and faster method.

Orbs are CircleCI configuration packages that can be shared across projects. Orbs allow you to make a single bundle of jobs, commands, and executors.

The Mend Scanner Orb is a simple tool that extracts descriptive information from the open source libraries located on your file system and integrates them with Mend.
By using Mend Orb, you can automatically detect all open source components in your code, while running your build. You can configure real time alerts on security risks, policy pitfalls, and software bugs. The orb integrates fully into your build process,  regardless of your programming languages or development environments. It works automatically, continuously, and silently in the background, checking the security, licensing, and quality of your open source components against Mend’s constantly-updated definitive database of open source repositories.

Prerequisites

Deploying Mend Orb

Info

In order to keep your API token secure, Mend creates a ‘context’ in CircleCI. Contexts provide a mechanism for securing and sharing environment variables across projects. The environment variables are defined as name/value pairs and are injected at runtime.

...

From the CircleCI interface, click Settings > Context, and click Create Context:

...

...

Add a new variable for the Mend API Token (you can find the API token on the Integrate tab).

...

Create a configuration file with the required parameters for the scan, and set the Configuration file name (including the file path) as a value for the config_file_path parameter.

...

Add a comma-separated list of directories and/or files to scan.

...

Commit and push to view the scan results.

...

You can view the compliance and security data for the project that was scanned on the Mend Dashboard.

Related Unified Agent Parameters

The following  are relevant Unified Agent parameters for this type of scan:

...

Parameter

...

Description

...

Required

...

Default Value

...

Type

...

api_key

...

Unique identifier of the organization. Can be retrieved from the admin page in your Mend account.

...

Yes

...

No default value

...

String

...

directory

...

Comma-separated list of directories and / or files to scan.

...

No

...

.

...

String

...

config_file_path

...

Configuration file name (including file path).

...

No

...

./Mend-fs-agent.config

...

String

...

commands_file_path

...

Install commands file (including file path).

...

No

...

install_commands.sh

...

This page is available at: https://docs.mend.io/bundle/unified_agent/page/mend-scan_orb.html