Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
217

whitesource whitesource

Run a Mend scan to secure your open source code

arguments

  • API_KEY - A unique identifier of your Mend organization. It can be retrieved from the Integrate tab in the WS UI.
  • CONFIG_FILE - The Mend Unified Agent configuration file. The default value is wss-unified-agent.config.
  • INSTALL_COMMANDS - The path to the 'install-commands.sh' file. This file contains the package manager and other dependency installation commands. NOTE: This file must be an executable.
  • PROJECT_DIRECTORY - A comma-delimited list of directories and/or files to scan.
    version: '1.0'
steps:
  mend:
    title: Mend Scan
    type: whitesource
    arguments:
      INSTALL_COMMANDS: '${{INSTALL_COMMANDS}}'
      CONFIG_FILE: '${{CONFIG_FILE}}'
      PROJECT_DIRECTORY: '${{PROJECT_DIRECTORY}}'
      API_KEY: '${{API_KEY}}'

  
github.com
Mend
May 30, 2022