ci(renovate): silence github.com rate limit + skip internal workflow ref
Wire an optional read-only GITHUB_COM_TOKEN so Renovate can reach api.github.com (changelogs + actions/checkout-style updates) without rate limiting, and disable management of the internal Gitea reusable workflow `played/workflows` (it's a @main ref, not a github.com action). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -47,12 +47,17 @@ jobs:
|
||||
# Reuse the build-time npmrc so Renovate can resolve @played/* from
|
||||
# the Gitea registry.
|
||||
RENOVATE_NPMRC: ${{ secrets.NPMRC }}
|
||||
# Read-only github.com PAT (no scopes needed for public data). Avoids
|
||||
# api.github.com rate limits and enables changelogs + updates for the
|
||||
# real github.com actions used in deploy.yml (actions/checkout, etc.).
|
||||
GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_COM_TOKEN }}
|
||||
LOG_LEVEL: ${{ inputs.logLevel || 'info' }}
|
||||
RENOVATE_DRY_RUN: ${{ inputs.dryRun && 'full' || '' }}
|
||||
run: |
|
||||
docker run --rm \
|
||||
-e RENOVATE_TOKEN \
|
||||
-e RENOVATE_NPMRC \
|
||||
-e GITHUB_COM_TOKEN \
|
||||
-e LOG_LEVEL \
|
||||
-e RENOVATE_DRY_RUN \
|
||||
-e RENOVATE_PLATFORM=gitea \
|
||||
|
||||
@@ -54,6 +54,7 @@ Self-hosted [Renovate](https://docs.renovatebot.com) that keeps dependencies ali
|
||||
|
||||
1. Create a Gitea PAT — a dedicated `renovate` bot user is cleanest — with scopes `read:user`, `write:repository`, `write:issue`. Add it as the `RENOVATE_TOKEN` Actions secret (org-level, or on this repo).
|
||||
2. Make sure the existing `NPMRC` secret (registry + `@played` auth) is visible to this repo's Actions run (org-level recommended) — Renovate uses it to look up `@played/*` versions.
|
||||
- *Optional but recommended:* add `RENOVATE_GITHUB_COM_TOKEN` — a **read-only** github.com PAT (no scopes). It stops `api.github.com` rate-limit warnings and enables changelogs + updates for the github.com actions in `deploy.yml` (`actions/checkout`, `appleboy/ssh-action`, …).
|
||||
3. Push, then run the workflow once (**Run workflow**). Renovate opens a "Configure Renovate" onboarding PR in each target repo that does `extends: ["local>played/workflows:renovate-config"]`; merge them to go live.
|
||||
|
||||
### Target repos
|
||||
|
||||
@@ -15,6 +15,12 @@
|
||||
"matchUpdateTypes": ["minor", "patch"],
|
||||
"matchPackageNames": ["!/^@played//"],
|
||||
"groupName": "non-major dependencies"
|
||||
},
|
||||
{
|
||||
"description": "Internal Gitea reusable workflow (pinned @main) — not a github.com action, don't manage it.",
|
||||
"matchManagers": ["github-actions"],
|
||||
"matchPackageNames": ["played/workflows"],
|
||||
"enabled": false
|
||||
}
|
||||
],
|
||||
"lockFileMaintenance": {
|
||||
|
||||
Reference in New Issue
Block a user