Git Clone through Broker

Brokered Snyk Code enables the Broker to accept code files. The Broker then scans between the SCM system and Snyk.

To grant Broker access to perform a Git clone of your repository when you are installing with Docker, add the environment variable: ACCEPT_CODE=true. The Broker Helm Chart sets ACCEPT_CODE=true by default.

Example for installation with Docker:

docker run --restart=always \
           -p 8000:8000 \
           -e BROKER_TOKEN=secret-broker-token \
           -e GITHUB_TOKEN=secret-github-token \
           -e PORT=8000 \
           -e BROKER_CLIENT_URL=http://my.broker.client:8000 \
           -e ACCEPT_CODE=true
       snyk/broker:github-com

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.

Last updated

Was this helpful?

Revision created

Add comment to emphasize required filters hidden in GitBook collapsed field