Getting started
This section shows the simplest scenario to start using dependabot-gitlab
Step 1: Add configuration file
Add configuration file .gitlab/dependabot.yml to the project. Minimal configuration requires following options to be present:
version: 2
updates:
- package-ecosystem: package-manager
directory: /
schedule:
interval: dailyStep 2: Set up access tokens
Create Gitlab personal access token with
apiandread_repositoryaccess scopes and at leastDeveloperrole.Create github personal access token with
public_repoaccess scope if all your dependencies come from public repositories orreposcope if some dependencies might need to fetch changelog data from private repositories. Setting up github access token is optional but due to very low rate limit for anonymous users, it is highly recommended for updates to work properly.
Step 3: Run the app
Stateless mode
Check out standalone-mode guide for details on how to add simple GitLab CI job to run dependency updates.
Service mode
Save gitlab url to environment variable SETTINGS__GITLAB_URL:
export SETTINGS__GITLAB_URL=https://gitlab.comSave gitlab access token to environment variable SETTINGS__GITLAB_ACCESS_TOKEN:
export SETTINGS__GITLAB_ACCESS_TOKEN=gitlab_access_tokenSave github access token to environment variable SETTINGS__GITHUB_ACCESS_TOKEN:
export SETTINGS__GITHUB_ACCESS_TOKEN=github_access_tokenStart app using docker compose:
curl -s https://gitlab.com/dependabot-gitlab/dependabot/-/raw/v3.18.1-alpha.1/docker-compose.yml | docker compose -f - up -dAdd project
Go to http://localhost:3000 and use New project button to add project to the list of projects that will be updated.