Snyk Code - Clone capability with Broker for Docker
Release status
The environment variable to enable Git clone capabilities is in Early Access and is available only with Enterprise plans. Snyk recommends it for Snyk Code analysis through the Broker. If you want to set it up in your Group or Organization, contact your Snyk account team.
Brokered Snyk Code enables the Broker to accept code files, and the Broker then scans between the SCM system and Snyk.
By default, the Git clone capabilities required by Snyk Code are disabled.
Accept configuration
To grant Broker access to perform a Git clone of your repository, add the environment variable: ACCEPT_CODE=true
Example:
This adds the necessary accept
rules for your Git server.
After this is done, you can follow the Broker instructions for your SCM system. For details, see Install and configure Snyk Broker
Custom accept configuration
The default rules are in the client templates in the Broker GitHub repository.
If custom accept
rules are required, you can provide a custom accept.json
.
Example:
If you are using a custom accept
file from a separate folder, with the ACCEPT
environment variable, you cannot use any of the other ACCEPT
mechanisms, such as ACCEPT_CODE
or ACCEPT_IAC
.
If you want to customize the accept.json
, add this snippet to your custom accept.json
This snippet is valid for all Git integrations.
Last updated