Overview
This provides advanced technical information related to the repo integrations.
Files that Can Trigger a Repository Scan
Adding/changing/deleting one of the files on the list below will automatically trigger a scan of your repository using the Mend Repository Integration.
-
bower.json
-
build.gradle
-
build.gradle.kts
-
build.sbt
-
conanfile.py
-
conanfile.txt
-
cargo.toml
-
composer.json
-
dependencies.scala
-
environment.yml
-
Gemfile.lock
-
glide.lock
-
go.mod
-
Godeps.lock
-
gogradle.lock
-
Gopkg.lock
-
gradle.lockfile
-
gradle.properties
-
libs.gradle
-
libs.versions.toml
-
package-lock.json
-
package.json
-
paket.dependencies
-
packages.config
-
packages.lock.json
-
packrat.lock
-
Pipfile
-
pipfile.lock
-
pnpm-lock.yaml
-
Podfile
-
poetry.lock
-
pom.xml
-
pubspec.yaml
-
pyproject.toml
-
requirements.txt
-
settings.gradle
-
setup.cfg
-
setup.py
-
vendor.conf
-
versions.kt
-
yarn.lock
-
Any metafile with one of the following extensions:
-
asp
-
aspx
-
config
-
csproj
-
do
-
gitmodules
-
htm
-
html
-
jsp
-
shtml
-
tf
-
xhtml
-
-
Cargo.lock
Technical Information for Self-Hosted Integrations
Modifying the Scanner Dockerfile
The wss-scanner image Dockerfile is located in the wss-scanner\docker\ folder.
By default, the following package managers are installed:
-
Maven (3.5.4)
-
npm
-
Bower
-
Yarn
-
Gradle
-
pip and pip3 (Python)
If you would like to add support for additional package managers, uncomment the relevant lines in the Dockerfile. The following package managers are available as part of the commented lines in the Dockerfile:
-
Mix (Elixir)
-
Hex (Erlang)
-
Go Modules, Dep, godep, VNDR, govendor, gopm, glide (Go)
-
Cabal (Haskell)
-
Bazel (Java)
-
Paket, NuGet (.NET)
-
Composer (PHP)
-
Poetry (Python)
-
Packrat (R)
-
Bundler (Ruby)
-
Cargo (Rust)
-
SBT (Scala)
-
Cocoapods (Swift)
Note: When using the wss-scanner image’s Dockerfilefull, all of the package managers listed above are uncommented by default and will be installed. The Dockerfilefull is located in the wss-scanner\docker\ folder.
List of Installed Package Managers
The table below lists the installed package manager versions on Self-Hosted Integrations Doker images, which work out-of-the-box.
The default version will be used, unless dynamic version detection is in effect.
When other installed versions are present, they can be used by manually setting the version in the configuration.
|
Package Manager / Language |
Default Version |
All Installed Versions |
Installed via install-tool |
Support Dynamic versioning |
|
node |
24.15.0 |
24.15.0 |
Yes |
No |
|
npm |
11.13.0 |
11.13.0 |
Yes |
No |
|
yarn |
1.22.22 |
1.22.22 |
Yes |
No |
|
bower |
1.8.14 |
1.8.14 |
Yes |
No |
|
pnpm |
10.33.2 |
10.33.2 |
Yes |
No |
|
bun |
1.3.14 |
1.3.14 |
Yes |
No |
|
java |
17.0.18+8 |
8.0.472+8, 11.0.29+7, 21.0.10+7.0.LTS, 25.0.2+10.0.LTS, 17.0.18+8 |
Yes |
No |
|
gradle |
8.14.4 |
6.9.4, 7.6.6, 9.3.1, 8.14.4 |
Yes |
No |
|
golang |
1.26.2 |
1.26.2 |
Yes |
No |
|
maven |
3.9.14 |
3.9.14 |
Yes |
No |
|
scala |
v2.13.16 |
v2.13.16 |
Yes |
No |
|
sbt |
1.12.9 |
1.12.9 |
Yes |
No |
|
python |
3.10.20 |
3.6.15, 2.7.18, 3.11.12, 3.12.9, 3.7.17, 3.8.20, 3.13.1, 3.9.25, 3.10.20 |
Yes |
Yes |
|
php |
8.5.5 |
8.5.5 |
Yes |
No |
|
composer |
2.9.7 |
2.9.7 |
Yes |
No |
|
dotnet |
7.0.410 |
2.2.402, 3.1.426, 5.0.408, 6.0.428, 8.0.417, 9.0.310, 7.0.410 |
Yes |
Yes |
|
rust |
1.95.0 |
1.95.0 |
Yes |
No |
|
pipenv |
2026.5.2 |
2024.4.1, 2026.5.2 |
Yes |
No |
|
uv |
0.11.7 |
0.11.7 |
Yes |
No |
|
poetry |
1.6.1 |
2.3.2, 1.6.1 |
Yes |
Yes |
|
ruby |
4.0.3 |
4.0.3 |
Yes |
No |
|
bundler |
4.0.10 |
4.0.10 |
Yes |
No |
|
conan |
2.27.1 |
2.27.1 |
Yes |
No |
|
erlang |
28.4.2.0 |
28.4.2.0 |
Yes |
No |
|
elixir |
1.19.5 |
1.19.5 |
Yes |
No |
|
cocoapods |
1.16.2 |
1.16.2 |
Yes |
No |
|
miniconda3 |
py39_24.1.2-0 |
py39_24.1.2-0 |
No |
No |
|
Haskell GHC |
8.6.5 |
8.6.5 |
No |
No |
|
Cabal |
3.2 |
3.2 |
No |
No |
|
mono-devel |
apt (system) |
apt (system) |
No |
No |
|
nuget |
apt (system) |
apt (system) |
No |
No |
|
Paket |
7.2.1 |
7.2.1 |
No |
No |
|
bazelisk |
v1.28.1 |
v1.28.1 |
Yes |
No |
|
bazel |
6.1.1 |
6.1.1 |
No |
No |
|
swift |
6.0.3 |
6.0.3 |
Yes |
No |
|
R |
apt (system) |
apt (system) |
No |
No |
Python Support
Automatic Detection of Python Versions
By default, the SCA scanner automatically detects the required Python version for a project by checking standard configuration files within the repository, and uses them to resolve dependencies.
The scanner checks for Python version specifications in the following files, in order of precedence:
|
Project Type |
File Precedence (Highest to Lowest) |
|---|---|
|
pip |
|
|
Poetry |
|
If no version file is found, the SCA scanner will default to the global configuration (e.g., Python 3.9).
Limitations
-
The feature is only supported in version 26.3.1 of the integration or above.
-
Custom or non-standard Python version files are not supported.
-
Python versions specified using local identifiers like
"system", or those starting with"ref:"or"path:"are skipped. -
Version epochs are skipped.
-
Developmental releases are not supported.
-
Explicit Python version settings set in the scanning configuration of the repository integration will override auto-detection.
-
In mono-repos, only one version is selected for all sub-projects (the last one found).
-
For
pipenv, using versions older than 3.10.x will fail. -
Unified Agent configurations explicitly defining the version to use take precedence.
-
Only types of version schemas, logic operators and comparison operators that are defined by PEP 440 or are valid semver strings are supported.
-
The
+local version identifier is not supported. The SCA scanner will omit it from the version specification and attempt to use that instead (e.g.,1.2.3+debian1→1.2.3). -
The SCA scanner will attempt to convert the
===arbitrary equality operator used to specify non-PEP 440 versions to exact match (==). -
The SCA scanner will strip pre-release versions (e.g.,
3.13.0a1,3.13.0b2,3.13.0rc1) to a final version and attempt to use that instead (e.g.,3.13.0a1→3.13.0). -
The SCA scanner will attempt to convert Conda’s
environment.yamlwhich contains a hash (e.g.,python=3.9.7=h12debd9_0) to the semver version without the hash (e.g.,3.9.7). -
The SCA scanner will use regex to detect Python versions in Python
setup.pyfiles, but variables are not supported (e.g.,python_requires=PYTHON_REQ). -
Only cpython versions are supported. The SCA scanner will attempt to switch from other implementations (pypy, graalpy, ironpython) to cpython.
Manual Setting of Python Versions
You can specify the Python version for your repository based on the supported versions.
For example:
2.7.18, 3.7.17, 3.9.18, 3.13, etc.
For this you will need to perform the following procedure:
-
Ensure the relevant Python version is uncommented in your scanner container’s Dockerfile.
-
Add or edit the .whitesource configuration file in your repository.
-
Use the
configModeparameter and set it to eitherLOCALorEXTERNAL. -
Create a whitesource.config file and add the following:
python.invokePipAsModule=true python.path=python3.9 python.installVirtualenv=true
Note:
-
For
python.path, specify the Python version without the minor version. For example:python2.7,python3.9,python3.13, etc. -
Alternatively, you can apply this globally across your repositories by using the Global Repo Configuration repo-config.json file.
-
(Self-hosted Repo Integrations) For uv, the SCA orchestrator scanner environment variable must be enabled (
MEND_SCA_ORCHESTRATOR_ENABLED=true).
Enable git LFS in the Scanner
To enable git LFS, uncomment the last two lines of this section of the Dockerfile:
# install git lfs
#ARG GIT_LFS_VERSION=v3.5.1
#RUN install-tool git-lfs
Note: This feature will not work with Jgit as the cloning utility (i.e., WS_GIT_CONNECTOR=false, as documented here).
You can also refer the official page of the extension at https://git-lfs.com/.
Required Open Ports
The wss-scanner Docker Container
The wss-scanner Docker container communicates with the following components using the following ports:
-
Mend SaaS API → Port 443
-
Your repository platform’s git protocol → The default is port 9418
-
Private/public package registries (npmjs/pypi/ruby gems, etc.) which use the standard ports
The wss-gls-app/wss-ghe-app/wss-bb-app Docker Container
The wss-app Docker container communicates with the following components using the following ports:
-
Your repository platform instance API → Check the port number with your repository platform Admin.
-
The Mend SaaS API → Port 443
-
The wss-remediate server Docker container port as configured by the user → The default is 8080.
The wss-remediate Docker Container
The wss-remediate Docker container communicates with the following components using the following ports:
-
Inbound:
-
Requests are received via a single port (default is 8080) from the wss-app Docker container
-
-
Outbound:
-
Internally:
-
Your repository platform instance over https (default port is 443)
-
-
Externally:
-
Private/public package registries (npmjs/pypi/ruby gems, etc.) which use the standard ports
-
-
Repository Platform
Your repository platform instance requires the ability to communicate with the following components using the following ports:
-
wss-<integration_type>-app Docker container → Recommended is 5678
-
wss-remediate Docker container → Recommended is 8080
-
wss-scanner Docker container → Recommended is 9393
NOTE: All port numbers on the Docker containers are the user’s choice
Enabling HTTPS Support for the Webhook Interceptor
The app container supports two ways of enabling HTTPS protocol for the webhook interceptor:
-
Using Java KeyStore containing valid certificate and private key, as environment variables:
-
WS_KEYSTORE_FILE_PATH - path to the keystore file
-
WS_KEYSTORE_PASSWORD - password for the keystore file
-
-
Directly provide a certificate and private key files, as environment variables:
-
WS_HTTPS_CERT_FILE_PATH - path to the certificate file
-
WS_HTTPS_KEY_FILE_PATH - path to the private key file
-
App Container Startup Check
Available from version 21.1.2 of the integration
Upon startup, the app container provides a clear indication of the connectivity status between itself and the remediate container, the repository platform (SCM) API, and the Mend application server. The startup check also validates the activation key provided in the initial configuration. If needed, error messages are displayed. Each check results in one of three status types, as listed here:
-
SUCCESS
-
FAILED
-
SKIPPED
|
Check Name |
Check Description |
Notes |
|---|---|---|
|
Activation Key Parsing |
Verifies the activation key is valid. |
If this check returns FAILED, the controller will shut down. |
|
Mend API Connectivity |
Checks the connectivity with the Mend application server.
|
If this check returns FAILED, the controller will shut down. |
|
Activation Key Validation |
Validates the content of the parsed activation key.
|
If this check returns FAILED, the controller will shut down. |
|
Mend Credentials |
Checks that the Mend service user (generated as part of the integration) has regular and admin access to the integrated Mend organization.
|
|
|
Queue Implementation |
Checks the Mend application server queue implementation (ability to send and receive messages).
|
|
|
SCM API Connectivity |
Checks the connectivity with the SCM (Bitbucket, GitHub, or GitLab) API.
|
|
|
Controller to Remediate Connectivity |
Checks the connectivity from the wss-app container to the Remediate container. |
|
|
Remediate to Controller Connectivity |
Checks the connectivity from the Remediate container to the wss-app container. |
|
|
GitHub App Permissions |
Checks that the GitHub App has all the required minimal permissions and event subscriptions in place. |
Only relevant for Mend for GitHub Enterprise. |
When all checks are finished, a summary table will be written to the log, for example:
Environmental Variables
To view the environmental variables and their configurations related to the Mend Repo Integrations, refer to the Environment Variables for Self-Hosted Integrations documentation.
Automate Secret Encryption for Private Registries
You can encrypt secrets from the CLI, using the curl, echo, jq, gpg, grep and tr CLI programs.
Here is an example:
curl https://app.renovatebot.com/renovate.pgp --output renovate.pgp
echo -n '{"o":"your-organization", "r":"your-repository (optional)", "v":"your-secret-value"}' | jq . -c | gpg --encrypt -a --recipient-file renovate.pgp | grep -v '^----' | tr -d '\n'
The above script uses:
-
curlto download the Mend Renovate hosted app's public key -
echoto echo a JSON object intojq -
jqto validate the JSON and then compact it -
gpgto encrypt the contents -
grepandtrto extract the encrypted payload which we will use
The jq step is optional, you can leave it out if you wish. Its primary value is validating that the string you echo to gpg is valid JSON and compact.
Note: Encrypted secrets must have at least an org/group scope, and optionally a repository scope. This means that Renovate will check if a secret's scope matches the current repository before applying it, and warn/discard if there is a mismatch.
Encrypted secrets usually have a single organization. But you may encrypt a secret with more than one organization, for example, org1,org2. This way the secret can be used in both the org1 and org2 organizations.
For more information on how to use secrets for private packages, refer to the Private package support documentation.