Skip to content

Commit 02bd1cc

Browse files
ci: run renovate config validator from the pinned docker image
**Problem:** The validate workflow installed renovate from npm at CI time via `npx`, so a fresh package tree was resolved and downloaded on every run. **Solution:** Run `renovate-config-validator` from the official renovate image, pinned by tag and digest, as a docker step. The version is fixed by an immutable digest, and Renovate keeps the tag+digest updated. Drops the now unused `setup-node` step and the `RENOVATE_VERSION`/`LOG_LEVEL` env. --- _Testing:_ Run in CI
1 parent c8b8069 commit 02bd1cc

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/validate-renovate.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@ name: validate renovate.json
33
on:
44
pull_request:
55

6-
env:
7-
LOG_LEVEL: debug
8-
RENOVATE_VERSION: "44.11.4" # renovate: datasource=npm depName=renovate
9-
106
jobs:
117
renovate-config-validator:
128
runs-on: ubuntu-latest
139
timeout-minutes: 10
10+
permissions:
11+
contents: read
1412

1513
steps:
1614
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
1715
with:
1816
persist-credentials: false
1917

20-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
18+
- uses: docker://ghcr.io/renovatebot/renovate:44.13.1@sha256:3e4149122921d530218a4ca809c59636faa668b330e4c9ea7f9ee1e20ea505dd
2119
with:
22-
node-version: lts/*
23-
24-
- run: npx --yes --ignore-scripts -p "renovate@${RENOVATE_VERSION}" -- renovate-config-validator renovate.json
20+
entrypoint: renovate-config-validator
21+
args: --no-global renovate.json

0 commit comments

Comments
 (0)