From 098da8a9881235480a31f655ab73ce1591f31c8c Mon Sep 17 00:00:00 2001 From: grabowski Date: Thu, 6 Nov 2025 13:32:26 +0700 Subject: [PATCH] change to GH token --- .gitea/workflows/renovate.yml | 5 +++-- README.md | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml index 974c829..2650194 100644 --- a/.gitea/workflows/renovate.yml +++ b/.gitea/workflows/renovate.yml @@ -37,10 +37,11 @@ jobs: RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} # Optional: GitHub token for accessing GitHub releases - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Note: Use GH_TOKEN not GITHUB_TOKEN (Gitea naming restrictions) + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} # Logging LOG_LEVEL: info # Ensure we use the correct config - RENOVATE_REQUIRE_CONFIG: optional + RENOVATE_REQUIRE_CONFIG: optional \ No newline at end of file diff --git a/README.md b/README.md index cc0c6ee..898e991 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,21 @@ Documentation for the renovate-config repository explaining setup and usage. - Edit `config.js` to match your Gitea endpoint - Edit `autodiscoverFilter` to match your organization/user - Add `RENOVATE_TOKEN` as repository secret -- Optionally add `GITHUB_TOKEN` for GitHub releases +- Optionally add `GH_TOKEN` for GitHub releases (not `GITHUB_TOKEN` - see Gitea naming rules below) + +### Gitea Secret Naming Rules + +Gitea has specific rules for secret names: +- Must contain only alphanumeric characters ([a-z], [A-Z], [0-9]) or underscores (_) +- Cannot start with `GITHUB_` or `GITEA_` prefix +- Cannot start with a number +- Not case-sensitive +- Must be unique at the repository level + +**Therefore**: Use `GH_TOKEN` instead of `GITHUB_TOKEN` for the GitHub access token. ## See Full Documentation For complete setup instructions, see: - [RENOVATE.md](../RENOVATE.md) - Full Renovate documentation -- [Official Gitea Tutorial](https://about.gitea.com/resources/tutorials/use-gitea-and-renovate-bot-to-automatically-monitor-software-packages) +- [Official Gitea Tutorial](https://about.gitea.com/resources/tutorials/use-gitea-and-renovate-bot-to-automatically-monitor-software-packages) \ No newline at end of file