Skip to content

Commit 7ff65ca

Browse files
committed
chore: update Renovate configuration to require RENOVATE_TOKEN for im… (#97)
1 parent 2708b59 commit 7ff65ca

6 files changed

Lines changed: 37 additions & 1004 deletions

File tree

.github/workflows/renovate.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@ jobs:
1414
renovate:
1515
name: Run Renovate Bot
1616
runs-on: ubuntu-latest
17+
env:
18+
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
1719

1820
steps:
21+
- name: Validate Renovate token
22+
if: ${{ env.RENOVATE_TOKEN == '' }}
23+
run: |
24+
echo "RENOVATE_TOKEN is not configured."
25+
echo "Set repository secret RENOVATE_TOKEN (fine-grained token with Contents: Read/Write and Pull requests: Read/Write)."
26+
exit 1
27+
1928
- name: Checkout repository
2029
uses: actions/checkout@v4
2130

IMPLEMENTATION_SUMMARY.md

Lines changed: 0 additions & 280 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,24 @@ This repo now uses Renovate to auto-update dependencies (including template mani
120120

121121
### One-time setup
122122

123-
1. No additional token is required. Renovate uses the default `secrets.GITHUB_TOKEN`.
124-
2. Enable repository auto-merge in GitHub settings.
125-
3. Protect `master` and require CI checks before merge.
123+
1. Create a repository secret named `RENOVATE_TOKEN`.
124+
2. Use a fine-grained GitHub token scoped to this repository with:
125+
- Contents: Read and write
126+
- Pull requests: Read and write
127+
3. Enable repository auto-merge in GitHub settings.
128+
4. Protect `master`, require CI checks before merge, and enable merge queue.
129+
130+
Why: PRs created with `GITHUB_TOKEN` do not trigger downstream `pull_request` workflows. Using `RENOVATE_TOKEN` ensures CI checks run and automerge can complete.
126131

127132
Workflow file: `.github/workflows/renovate.yml`
128133
Config file: `renovate.json`
129134

130135
Behavior:
131136

132-
- All dependency updates (major, minor, patch) auto-merge after checks pass.
137+
- Renovate runs with controlled concurrency (`prConcurrentLimit` and `branchConcurrentLimit` set to `3`) to reduce conflicts.
138+
- Major updates are never auto-merged and require manual review.
139+
- Minor, patch, pin, and digest updates are grouped into fewer PRs and auto-merge after checks pass.
140+
- Renovate automatically rebases dependency PRs when they fall behind `master`.
133141
- Custom regex managers keep template manifests, the resolver registry, and README dependency rows in sync.
134142

135143
## Screenshot

0 commit comments

Comments
 (0)