From 350ca3b4b6ae8ba6df918a722afcf8de50891c9b Mon Sep 17 00:00:00 2001 From: Timothy Date: Sat, 27 Jun 2026 01:45:37 +0200 Subject: [PATCH] ci(renovate): fix GitHub PAT secret name + bump image pin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two follow-ups to the initial Renovate setup (merged in PR #18): - Gitea reserves the GITHUB_ secret-name prefix (same as GitHub Actions), so the GITHUB_COM_TOKEN secret was rejected (HTTP 400). Rename to GH_COM_TOKEN and map it to RENOVATE_GITHUB_COM_TOKEN in the workflow. - Pin renovate/renovate:43 (current major; 41 was already stale — latest is 43.x). refs server-management#484 Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/renovate.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml index eb7fd8bdd..bf9bec59a 100644 --- a/.gitea/workflows/renovate.yml +++ b/.gitea/workflows/renovate.yml @@ -11,9 +11,10 @@ name: Renovate # Bot identity + tokens are injected from repo Actions secrets: # RENOVATE_TOKEN — PAT of the dedicated `renovate` Gitea bot (write:repository, # read:user, write:issue, read:organization) -# GITHUB_COM_TOKEN — no-scope github.com PAT for changelog/release-note fetching +# GH_COM_TOKEN — no-scope github.com PAT for changelog/release-note fetching # (Renovate needs this on non-GitHub platforms; optional, degrades -# gracefully to anonymous if unset) +# gracefully to anonymous if unset). Named GH_, not GITHUB_, because +# Gitea reserves the GITHUB_ secret-name prefix. # # NOTE: Gitea runs `schedule` triggers ONLY from the default branch (main); this file must # be on main before the cron registers. Use workflow_dispatch to run on demand — it defaults @@ -49,14 +50,14 @@ jobs: name: Renovate runs-on: ubuntu-latest container: - image: renovate/renovate:41 + image: renovate/renovate:43 steps: - name: Run Renovate env: RENOVATE_PLATFORM: gitea RENOVATE_ENDPOINT: http://192.168.1.95:3000/api/v1 RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} - RENOVATE_GITHUB_COM_TOKEN: ${{ secrets.GITHUB_COM_TOKEN }} + RENOVATE_GITHUB_COM_TOKEN: ${{ secrets.GH_COM_TOKEN }} RENOVATE_REPOSITORIES: timothy/ersatztv RENOVATE_AUTODISCOVER: 'false' RENOVATE_GIT_AUTHOR: 'Renovate Bot ' -- 2.47.3