Skip to content

Latest commit

 

History

History
74 lines (47 loc) · 1.65 KB

File metadata and controls

74 lines (47 loc) · 1.65 KB

serverless-whitesource

serverless

WhiteSource

Description

Perform a WhiteSource scan for Serverless functions after deployment.

Requirements

Installation

npm install serverless-whitesource
sudo npm install -g serverless #this step is required only in the first run

Configuration

serverless.yml

plugins:
  - serverless-whitesource

custom:
  whitesource:
    pathToConfig: ${path-to-configuration-file}
    pathToJar: ${path-to-UA-jar-file}
    [optional] wss-{valid UA's command-line paramter}: {parameter value}

Usage

1. Download the UA jar

curl -LJO https://wss-qa.s3.amazonaws.com/unified-agent/integration/wss-unified-agent

2. Install WhiteSource plugin

npm install serverless-whitesource

3. Update the serverless.yml with the path to the configuration-file, jar-file and relevant parameters

4. Deploy the serverless function(s)

sls deploy

Authors

Created and maintained by WhiteSource Software (product@whitesourcesoftware.com)

License

Apache 2.0 License (see LICENSE)