GitHub Enterprise - install and configure using Docker
Before installing, review the prerequisites and the general instructions for installation using Docker.
This integration is useful to ensure a secure connection with your on-premise or cloud GitHub Enterprise deployment.
Configure Broker to be used for GitHub Enterprise
To use the Snyk Broker client with a GitHub Enterprise deployment, run docker pull snyk/broker:github-enterprise
. Refer to GitHub Enterprise - environment variables for Snyk Broker for definitions of the environment variables.
If necessary, go to the Advanced configuration page and make any configuration changes needed, such as providing the CA (Certificate Authority) to the Broker Client configuration if the GitHub Enterprise instance is using a private certificate, and setting up proxy support.
Docker run command to set up a Broker Client for GitHub Enterprise
Copy the following command to set up a fully configured Broker Client to analyze Open Source, IaC, Container, Code files (with the Code Agent), and Snyk AppRisk information. Enable Snyk AppRisk to identify your application assets, monitor them, and prioritize the risks.
Multi-tenant settings for regions other than the default When you set up Snyk Broker for use in regions other than the default, additional environment variables with specific URLs are required. For the URLs and examples, see Regional hosting and data residency, Broker URLs.
Snyk AppRisk is set by default to false
. Enable it by setting the flag to true
.
As an alternative to using the Docker run command, you can use a derived Docker image to set up the Broker Client integration. See Derived Docker images for the environment variables to override for the GitHub Enterprise integration.
Start the Broker Client container and verify the connection with GitHub Enterprise
Paste the Broker Client configuration to start the Broker Client container.
Once the container is up, the GitHub Enterprise Integrations page shows the connection to GitHub Enterprise and you can Add Projects.
Basic troubleshooting for Broker with GitHub Enterprise
Support of big manifest files (> 1Mb) for GitHub Enterprise
One reason that open Fix/Upgrade PRs or PR/recurring tests fail may be fetching big manifest files (> 1Mb). To address this issue, enable an additional variable in your broker by following the Additional instructions for Snyk Open Source Scans (SCA) of large manifest files (Docker setup)
To ensure the maximum possible security, Snyk does not enable this rule by default, as use of this endpoint means that the Snyk platform can theoretically access all files in this repository, because the path does not include specific allowed file names.
Additional troubleshooting for Broker with GitHub Enterprise
Run
docker logs <container id>
to look for any errors, where container id is the GitHub Enterprise Broker container ID.Ensure relevant ports are exposed to GitHub Enterprise.
Last updated