This guide explains how to use our Taskfile to test Renovate locally using Docker.
- Docker installed and running
- Task v3 or later installed
- GitHub CLI installed and authenticated (
gh auth token)
The Renovate configuration is stored in .github/renovate.json5. This file defines:
- Package managers (poetry, pip)
- Auto-merge rules
- Dependencies grouping
- Update patterns
-
Set your GitHub token (two options):
a. Using a personal access token:
export GITHUB_TOKEN=your_github_tokenb. Using GitHub CLI (recommended):
export GITHUB_TOKEN=$(gh auth token)
-
Configure the repository you want to test:
export REPOSITORY=org/repo
Run Renovate with default settings:
task renovate-docker-debugThis command will:
- Verify Docker is running
- Validate repository format
- Execute Renovate in debug mode
export LOG_LEVEL=debug # Options: debug, info, warn, error
task renovate-docker-debugexport PLATFORM=gitlab # Default: github
task renovate-docker-debugYou can pass additional parameters to Renovate:
task renovate-docker-debug -- --dry-run=true| Variable | Description | Required | Default |
|---|---|---|---|
| GITHUB_TOKEN | Authentication token | Yes | - |
| REPOSITORY | Target repository | Yes | - |
| LOG_LEVEL | Logging verbosity | No | debug |
| PLATFORM | Git platform | No | github |
Using GitHub CLI (recommended):
# One-line command with automatic token generation
TASK_X_REMOTE_TASKFILES=1 REPOSITORY="org/repo" GITHUB_TOKEN=$(gh auth token) task renovate:renovate-docker-debugManual token setup:
export GITHUB_TOKEN=your_github_token
export REPOSITORY="org/repo"
TASK_X_REMOTE_TASKFILES=1 task renovate:renovate-docker-debug-
Docker not running:
Error: Docker daemon is not running
Solution: Start Docker desktop or daemon
-
Invalid repository format:
Error: Repository must be in org/repo format
Solution: Ensure REPOSITORY is set correctly (e.g., "microsoft/vscode")
-
Authentication failed:
Error: Authentication error
Solution: Verify GITHUB_TOKEN is set and has correct permissions