GitHub - environment variables for Snyk Broker
The following environment variables are required to configure the Broker Client for GitHub:
BROKER_TOKEN- the Snyk Broker token, obtained from your Snyk Org settings view (app.snyk.io).GITHUB_TOKEN- a personal access token with fullrepo,read:organdadmin:repo_hookscopes.PORT- the local port at which the Broker client accepts connections. Default is 8000.BROKER_CLIENT_URL- the full URL of the Broker client as it will be accessible to GitHub webhooks, such ashttp://broker.url.example:8000.This URL is required to access features such as PR Fixes or PR Checks.This must have http:// and the port number.
To configure the client with HTTPS, additional settings are required.
ACCEPT_IAC- by default, some file types used by Infrastructure-as-Code (IaC) are not enabled. To grant the Broker access to IaC files in your repository, for example, Terraform, you can add an environment variableACCEPT_IACwith any combination oftf,yaml,yml,json,tplACCEPT_CODE- by default, Snyk Code will not load code snippets. To enable code snippets, you can add an environment variableACCEPT_CODE=trueACCEPT_ESSENTIALS- enable Snyk Essentials to identify your application assets, monitor them, and prioritize the risks. To enable Snyk Essentials, add the environment variableACCEPT_ESSENTIALS=true
Last updated
Was this helpful?

