Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This page describes how to get started with the Unified Agent.

Prerequisites

  1. Ensure you have one of the following Java versions on the computer on which you want to run the Unified Agent

...

  1. :

    • Java JDK 8

    • Java JRE 8

    • Java JDK 11

...

    • Java JDK 17

  1. Depending on your project type,

...

  1. make sure that the relevant package

...

  1. manager is installed:

Project Type

Package Manager

C#

  • NuGet + .Net

  • Paket

Elixir, Erlang

MIX

Go

  • Dep

  • Godep

  • Vndr

  • Gogradle

  • Govendor

  • Gopm

  • Glide

  • Vgo

  • Modules

  • Bazel

Haskell

Cabal

Java

  • Maven

  • Gradle

  • ANT

  • Bazel

JavaScript

  • Yarn - required only if the project is not built

  • NPM - required only if the project is not built (or the detection was set to use NPM)

  • Bower

Objective-C, Swift

CocoaPods - required only if the project is not built  

OCaml

Opam

PHP

Composer - required only if the project is not built

Python

  • PIP

  • Poetry

  • Pipenv

  • Conda

R

Packrat - if used

Ruby

Bundler

Rust

Cargo - required only if the project is not built

Scala

SBT

Unified Agent Usage Overview

Step #

Step Name

1

Download the latest version of the Unified Agent and verify its integrity.

2

Set up the Unified Agent.

3

Do one of the following:

(See execution examples on this page)

4

View the results in your WhiteSource organizational portal.

...

Latest Unified Agent Version

File

Features

Release Date

MD5

Comments

21.11.122.4.2

wss-unified-agent.jar

Release Notes 2122.114.12

2815-11-2021

BA19E92BC8B508AA93CC7652EC878B1B

N/A05-2022

Previous Unified Agent Versions

NOTE: Unified Agent versions will be available and supported for a year after their release.  

Expand

Version

File

Features

Release Date

MD5

Comments

2122.4.101.21

wss-unified-agent-2122.4.101.21.jarRelease Notes 21

22.10.2

14-11-2021

90A989C0D60A70FCC9A62AF2D54F5E9B

N/A

21.10.4.1

wss-unified-agent-2122.104.1.jar

Release Notes 2122.104.1

3101-1005-20212022

74BB03F271E93CAB9FD3710FC6B786DBN/A

N/A

2122.93.1.13

wss-unified-agent-2122.93.13.1.jar

Release Notes 2122.93.1.13

2517-1004-20212022

706694E349EA14CB04C4621B70D99A93N/A

N/A

2122.3.92.1

wss-unified-agent-2122.3.92.1.jar

Release Notes 2122.3.92.1

1706-1004-20212022

510303D7588212C666F16B042A05BC3FN/A

N/A

2122.83.1.12

wss-unified-agent-2122.83.1.12.jar

Release Notes 2122.83.1.12

3103-0804-20212022

239DAD256F1E8BFAF7361FDEECE3E2CEN/A

N/A

2122.83.1

wss-unified-agent-2122.83.1.jar

Release Notes 2122.83.1

2920-0803-20212022

5E066881180AB1C1C24748145F784B32N/A

N/A

2122.2.72.2

wss-unified-agent-2122.2.72.2.jar

Release Notes 2122.2.72.2

1520-0803-20212022

90BE9617B380EF507C5D5ABE0191FCFAN/A

N/A

2122.2.72.1

wss-unified-agent-2122.2.72.1.jar

Release Notes 2122.2.72.1

0109-0803-20212022

B18E7F9CACB80993151F4518F852710BN/A

N/A

2122.62.32

wss-unified-agent-2122.62.32.jar

Release Notes 2122.62.32

1806-0703-20212022

B897BADFEBA66A39963717899E327F86N/A

N/A

2122.6.2.21

wss-unified-agent-21.622.2.21.jar

Release Notes 2122.6.2.21

0620-0702-20212022

BAC44FB66BE88130ECA094A37B81F527N/A

N/A

2122.61.2

wss-unified-agent-2122.61.2.jar

Release Notes 2122.61.2

0406-0702-20212022

5E7FE501C0B1BEF76F64EE683B917012N/A

N/A

2122.1.61.1

wss-unified-agent-2122.1.61.1.jar

Release Notes 2122.1.61.1

2027-0601-20212022

F2EB843816A572904954052756EB66E7N/A

N/A

2122.51.21

wss-unified-agent-2122.51.21.jar

Release Notes 2122.51.21

0623-0601-20212022

8E51FDC3C9EF7FCAE250737BD226C8F6N/A

N/A

21.512.12

wss-unified-agent-21.512.12.jar

Release Notes 21.512.12

2309-0501-20212022

B50664F3840004A868D34D608030005CN/A

N/A

21.412.21

wss-unified-agent-21.412.21.jar

Release Notes 21.412.21

0926-0512-2021

19ADD8EB5637DBD6BE63B9553576DAF99F459173DD2F4A1B0BCA16E3387248D6

N/A

21.411.2.1

wss-unified-agent-21.11.42.1.jar

Release Notes 21.411.2.1

2516-0412-2021

AD4F3747F519F83A2DF8963FF36D61B4C938CB75252B312961D16FBA3FC0F443

N/A

21.311.2.1

wss-unified-agent-21.311.2.1.jar

Release Notes 21.311.2.1

1312-0412-2021

707B193FEB891C1B40DD98A0B433ECA81EEDF78497CD5801D152B19CC7E65C69

N/A

21.311.21

wss-unified-agent-21.311.21.jar

Release Notes 21.311.21

28-11-04-2021

C3576952F70F574FE6745E754A16A0EEBA19E92BC8B508AA93CC7652EC878B1B

N/A

21.310.12

wss-unified-agent-21.310.12.jar

Release Notes 21.310.12

0414-0411-2021

C5639E304DEC915F664CE2B391D5A9D790A989C0D60A70FCC9A62AF2D54F5E9B

N/A

21.210.21

wss-unified-agent-21.210.21.jar

Release Notes 21.210.21

1431-0310-2021

5118B3403C578EC3AD922901CF70EF8574BB03F271E93CAB9FD3710FC6B786DB

N/A

21.29.1.1

wss-unified-agent-21.9.21.1.jar

Release Notes 21.29.1.1

2825-0210-2021

490F2217238889F0EC22A4D9352174B9706694E349EA14CB04C4621B70D99A93

N/A

21.19.2.1

wss-unified-agent-21.1.29.1.jar

Release Notes 21.19.2.1

1417-0210-2021

9C6B4DE63AAC89EBB4E7411F792C0AA8510303D7588212C666F16B042A05BC3F

N/A

21.8.1.21

wss-unified-agent-21.8.1.21.jar

Release Notes 21.8.1.21

1431-0208-2021

15D50AB0EF4D43907393515BF19F6897239DAD256F1E8BFAF7361FDEECE3E2CE

N/A

21.18.1

wss-unified-agent-21.18.1.jar

Release Notes 21.18.1

3129-0108-2021

FDC75043196E49882BCBE19CBCBBD81D5E066881180AB1C1C24748145F784B32

N/A

2021.127.32

wss-unified-agent-2021.127.32.jar

Release Notes 2021.127.32

1715-0108-2021 2021

00198172C5724A389CCD6EACD41B8D9690BE9617B380EF507C5D5ABE0191FCFA

N/A

2021.127.21

wss-unified-agent-2021.127.21.jar

Release Notes 2021.127.21

0301-0108-2021

DA174CC191818A3763CC79934C2AEAE8B18E7F9CACB80993151F4518F852710B

N/A

2021.126.13

wss-unified-agent-2021.126.13.jar

Release Notes 2021.126.13

2018-1207-20202021

70C387ECCA4FA7DCEA02C6C27FFE9247B897BADFEBA66A39963717899E327F86

N/A

2021.6.112.2

wss-unified-agent-2021.6.112.2.jar

Release Notes 2021.6.112.2

06-1207-20202021

20FC4F59F3183F98D12E82882039531ABAC44FB66BE88130ECA094A37B81F527

N/A

2021.116.12

wss-unified-agent-2021.116.12.jar

Release Notes 2021.116.12

2204-1107-20202021

75293725F596010982E7B831B6BC2F985E7FE501C0B1BEF76F64EE683B917012

N/A

2021.106.21

wss-unified-agent-2021.106.21.jar

Release Notes 2021.106.21

0820-1106-20202021

AD6F30452BAB599BA13CFBE6CDC59AC1F2EB843816A572904954052756EB66E7

N/A

2021.105.12

wss-unified-agent-2021.105.12.jar

Release Notes 2021.105.12

2506-1006-20202021

2D4624B239234177C851F7204ADB21F38E51FDC3C9EF7FCAE250737BD226C8F6

N/A

2021.9.25.1

wss-unified-agent-2021.95.2.1.jar

Release Notes 2021.95.2.1

1523-1005-20202021

673218A312EB4BF2EB4BB2122E66D2ECB50664F3840004A868D34D608030005C

N/A

2021.94.12

wss-unified-agent-2021.94.12.jar

Release Notes 2021.94.12

0409-1005-20202021

F375670B1F651330254AF5C65830CB1019ADD8EB5637DBD6BE63B9553576DAF9

N/A

Setting Up the Unified Agent

There are several methods for configuring the Unified Agent:

Environment Variables (Recommended)

All the parameters available in the configuration file can be passed to the Unified Agent using environment variables. For more information, refer here.

Configuration File

  • A configuration file can be passed to the Unified Agent in the command line using the -c argument. If no file is specified, the Unified Agent will look for a configuration file named wss-unified-agent.config in the current working directory.  Refer here for more information.
    It is recommended to create a blank configuration file and only add parameters that you want to change, in order to make use of the default configuration settings. As a reference, please refer here.

Command-line Parameters

The Unified Agent supports command-line options and parameters. For more information refer here.

The configuration is applied in the following order of precedence:

...

Linux/macOS:

export WS_APIKEY=my<your-api-apiKeykey>
export WS_USERKEY=my<your-user-userKeykey>
export WS_PRODUCTNAME=my<your-product-name>
export WS_PROJECTNAME=my<your-project-name>
export WS_WSS_URL=https://saas.whitesourcesoftware.com/agent
java -jar wss-unified-agent.jar

...

Executing the Unified Agent with Inline environment variables:

export WS_APIKEY=my<your-api-apiKeykey>
export WS_USERKEY=my<your-user-userKeykey>
WS_PRODUCTNAME=my<your-product-name> WS_PROJECTNAME=my<your-project-name> java -jar ./wss-unified-agent.jar

...

Executing the Unified Agent on multiple folders or files:

export WS_APIKEY=my<your-api-apiKeykey>
export WS_USERKEY=my<your-user-userKeykey>
export WS_PRODUCTNAME=my<your-product-name>
export WS_PROJECTNAME=my<your-project-name>
java -jar ./wss-unified-agent.jar -d /directory/to/scan,/directory/to/scan2,/file/to/scan

Executing the Unified Agent with a policy check to return an error code in order to break a CI/CD pipeline:

export WS_APIKEY=my<your-api-apiKeykey>
export WS_USERKEY=my<your-user-userKeykey>
export WS_PRODUCTNAME=my<your-product-name>
export WS_PROJECTNAME=my<your-project-name>
export WS_CHECKPOLICIES=true
export WS_FORCECHECKALLDEPENDENCIES=true
export WS_FORCEUPDATE=true
export WS_FORCEUPDATE_FAILBUILDONPOLICYVIOLATION=true
java -jar ./wss-unified-agent.jar

Executing the Unified Agent with a proxy:

export WS_APIKEY=my<your-api-apiKeykey>
export WS_USERKEY=my<your-user-userKeykey>
export WS_PRODUCTNAME=my<your-product-name>
export WS_PROJECTNAME=my<your-project-name>
export WS_PROXY_HOST=my<your-proxy-host-namename>
export WS_PROXY_PORT=my<your-proxy-port-numbernumber>
export WS_PROXY_USER=my<your-proxy-usernameusername>
export WS_PROXY_PASS=my<your-proxy-passwordpassword>
java -jar ./wss-unified-agent.jar 

...