Configuration environment variables
Different app specific functions can be configured via environment different environment variables.
Concurrency
WARNING
Not applicable for standalone mode
It is possible to configure concurrent thread amount for worker and web containers.
RAILS_MAX_THREADS- sets amount of sidekiq threads for worker container or puma threads for web containerRAILS_MIN_THREADS- set minimum amount of puma threads for web container. Not applicable for worker container
Databases
WARNING
Not applicable for standalone mode
MongoDb
Following environment variables are used for database connection configuration:
MONGODB_URI- all configuration options in a single uri parameter
or
MONGODB_URL- mongodb instance urlMONGODB_USER- mongodb usernameMONGODB_PASSWORD- user passwordMONGODB_DATABASE- database nameMONGODB_RETRY_WRITES- retry writes parameter,trueby default
Redis
REDIS_URL- redis instance urlREDIS_PASSWORD- redis passwordREDIS_TIMEOUT- redis timeout value, default: 1s
Application
SECRET_KEY_BASE- custom key used for stored credentials encryption, Rails documentationSETTINGS__LOG_LEVEL- logging level,[debug, info, warn, error]. Default:infoSETTINGS__LOG_COLOR- prettier colorized log output. Default:falseSETTINGS__DRY_RUN- run check for dependency updates but do not update anything. Default:falseSETTINGS__COMMANDS_PREFIX- bot name/prefix for comment commands in merge requestsSETTINGS__ANONYMOUS_ACCESS- unauthenticated access to projects page and API resources. Default:true
Access
SETTINGS__GITLAB_URL- url of gitlab instance, ex:https://gitlab.comby defaultSETTINGS__GITLAB_ACCESS_TOKEN- gitlab personal access token with api scopeSETTINGS__GITHUB_ACCESS_TOKEN- github personal access token with repository read scope, without it you can run into rate limits when fetching changelog and release notes for all dependencies which code comes from github
Gitlab API
SETTINGS__GITLAB_API_MAX_RETRY- max number of retry for each gitlab api call, ex:5. Default:3SETTINGS__GITLAB_API_MAX_RETRY_INTERVAL- interval (in seconds) between each retry regarding the gitlab api call, ex:2. Default:1
Webhooks
WARNING
Not applicable for standalone mode
SETTINGS__DEPENDABOT_URL- url application can be reached on, example:https://dependabot-gitlab.com. This url will be used to automatically add necessary webhooks to projectSETTINGS__CREATE_PROJECT_HOOK- enable or disable automated hook creation, defaulttrue. This can be useful if the user associated with used access token, does not have maintainer roleSETTINGS__GITLAB_AUTH_TOKEN- optional gitlab webhook token which can be configured under webhook settings in gitlab, if not present, token set in gitlab webhook configuration will be ignored
Configuration file
SETTINGS__CONFIG_BASE_FILENAME- path to base configuration file that will be merged with project specificdependabot.ymlconfiguration file, see common-configuration section for more detailsSETTINGS__CONFIG_FILENAME- custom configuration file location in project repository, default:.gitlab/dependabot.ymlSETTINGS__CONFIG_BRANCH- custom branch to fetchdependabot.yml. This option does not affect target branch where dependabot checks for manifest files and raises merge requests against. For that, target-branch option in configuration file itself must be usedSETTINGS__CONFIG_LOCAL_FILENAME- local configuration file location, will be used if no configuration file is found in project repositoryWARNING
This configuration will be applied to all projects that do not have
dependabot.ymlconfiguration file in repository. This can lead to unexpected behavior if you have projects with different package managers and different folder structures.
Service
WARNING
Not applicable for standalone mode
SETTINGS__UPDATE_RETRY- amount of retries for dependency update job orfalseto disable. Default:2SETTINGS__EXPIRE_RUN_DATA- purge persisted dependency update run logs from database after period of time in seconds, default 1 monthSETTINGS__UPDATER_TEMPLATE_PATH- path to template file describing updater container setup, set automatically via helm chart deployment and set todocker-compose.ymlin app root in case of docker-compose deploymentSETTINGS__DELETE_UPDATER_CONTAINER- remove updater container after dependency updates finished. Default:trueSETTINGS__UPDATER_CONTAINER_STARTUP_TIMEOUT- timeout in seconds before updater pod is considered to not have started successfully and update aborted. Default:180SETTINGS__DEPLOY_MODE- application deployment mode,composeork8s. This setting is used internally to determine how updater containers should be created.SETTINGS__UPDATER_IMAGE_PATTERN- Ecosystem specific image pattern, where package_ecosystem is one of the supported ecosystems:[bundler, npm, gomod, pip, docker, composer, pub, cargo, buget, maven, gradle, mix, terraform, elm, gitsubmodule], example:andrcuns/dependabot-gitlab-%<package_ecosystem>s:latest. Default:noneSETTINGS__COMPOSE_UPDATER_ALWAYS_PULL- always pull updater image before running it. Only applicable when deploy mode iscompose. Default:falseSETTINGS__SIDEKIQ_ALIVE_KEY_TTL- allows to configure redis key ttl value for worker healthcheck implementation. More about this option in sidekiq_aliveTime to livevalue configuration section. Increasing this value can be useful if worker container is processing a lot of jobs and too small of a value can lead to sidekiq not being able to schedule healtcheck jobs in time. Default:60
Project registration
WARNING
Not applicable for standalone mode
SETTINGS__PROJECT_REGISTRATIONmanual- default value which disables automated project registrationsystem_hook- enableapi/project/registrationendpoint for system webhook configurationautomatic- creates a cron job which automatically scans all projects where user associated with used gitlab access token has at least developer role and adds project ifdependabot.ymlconfiguration file is present
SETTINGS__PROJECT_REGISTRATION_CRON- cron expression for project registration job inautomaticmode, default:0 5 * * *SETTINGS__PROJECT_REGISTRATION_ALLOW_PATTERN- allowed project path regex pattern forautomaticofsystem_hookregistration modeSETTINGS__PROJECT_REGISTRATION_IGNORE_PATTERN- ignored project path regex pattern forautomaticofsystem_hookregistration mode, will override allow pattern if both patterns match certain project pathSETTINGS__PROJECT_REGISTRATION_RUN_ON_BOOT- when inautomaticmode, trigger project registration job immediately after boot
Metrics
WARNING
Not applicable for standalone mode
SETTINGS__METRICS- enable/metricsendpoint for prometheus compatible metrics
Sentry
SENTRY_DSN- sentry dsn valueSETTINGS__SENTRY_TRACES_SAMPLE_RATE- traces sample rate, default: 0.0SETTINGS__SENTRY_IGNORED_ERRORS- comma separated string of exceptions to exclude from reporting to sentry