agentleFS
hugobatistahugobatista/agent-skills/skills/devops/renovate/SKILL.md

renovate

Skill1 starsChanged 54 days agoMITView on GitHub

Use when creating or modifying Renovate configuration for automated dependency management. Covers renovate.json config, GitHub Actions workflow, and Forgejo Actions workflow templates for supply-chain hardened dependency updates.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use Renovate for supply-chain hardened dependency management — action SHA pinning, Docker digest pinning, minimum release age, and OSV …

    line 9
  2. Very specific:

    Read assets/renovate.json.tmpl, replace <timezone> with your IANA timezone (e.g.

    line 13
  3. Very specific:

    Read config.toml from this directory.

    line 15
  4. Very specific:

    Before creating the config, ask the user for the git author identity for Renovate commits.

    line 17
  5. Distinctive:

    For GitHub: no special hostRules needed.

    line 38
  6. Distinctive:

    Add the following if the project uses docker-compose:

    line 42
  7. Very specific:

    Read assets/renovate.yml.github.tmpl and write it to .github/workflows/renovate.yml (no substitutions — pinned defaults for …

    line 63
  8. Very specific:

    Read assets/renovate.yml.forgejo.tmpl.

    line 86
  9. Distinctive:

    After creating the workflow file, add the following section to README.md so that contributors can run a Renovate dry-run locally.

    line 94

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

When to use Renovate

Use Renovate for supply-chain hardened dependency management — action SHA pinning, Docker digest pinning, minimum release age, and OSV vulnerability alerts. Works on GitHub, Forgejo, Gitea, GitLab, and other platforms.

Config template

Read assets/renovate.json.tmpl, replace <timezone> with your IANA timezone (e.g. "Europe/Lisbon", "America/New_York"), and write it to the project root as renovate.json.

Read config.toml from this directory. If it exists, extract renovate_git_author for the default. If not, ask the user for their git author identity and write it to config.toml (one-time setup).

Before creating the config, ask the user for the git author identity for Renovate commits. Default: <renovate_git_author from config>. This email must be verified on the user's GitHub account to avoid "Unverified" commit badges. Replace <git-author> with the chosen value (e.g. "Renovate Bot <bot@example.com>").

Key settings:

  • pinDigests: true — converts @v4 → @<sha> # v4 for actions and image:tag → image:tag@sha256:digest for Docker. Keeps digests pinned and auto-updated.
  • minimumReleaseAge: "30 days" — prevents brand-new releases from being proposed until a vetting window passes.
  • osvVulnerabilityAlerts: true — monitors OSV.dev for known CVEs.
  • dependencyDashboard: true — creates a visibility issue tracking all pending, blocked, and ignored updates.

Platform-specific additions to renovate.json

For Forgejo (with GitHub action mirroring at data.forgejo.org):

"hostRules": [
  {
    "matchHost": "data.forgejo.org",
    "hostType": "github"
  }
]

For GitHub: no special hostRules needed.

Docker compose support

Add the following if the project uses docker-compose:

"docker-compose": {
  "enabled": true,
  "fileMatch": [
    "(^|/)(?:compose|docker-compose)[^/]*\\.ya?ml(?:[^/]*\\.example)?$"
  ]
}

This captures both docker-compose.yml and example files like docker-compose.yml.example or docker-compose.yml.secrets.example.

Custom managers

Custom regex managers can handle edge cases not covered by built-in managers. See https://docs.renovatebot.com/configuration-options/#custommanagers.

Workflow templates

GitHub (self-hosted)

Read assets/renovate.yml.github.tmpl and write it to .github/workflows/renovate.yml (no substitutions — pinned defaults for actions/checkout). Check for newer versions > 30 days old and update if needed.

The workflow separates env-var setup into dedicated steps so that act --env VAR=value overrides pass through for local testing.

Requires RENOVATE_TOKEN as a repository secret. Create a fine-grained PAT at:

https://github.com/settings/personal-access-tokens/new
PermissionLevel
Commit statusesRead and write
ContentsRead and write
Dependabot alertsRead-only
IssuesRead and write
MetadataRead-only
Pull requestsRead and write

A classic PAT with repo scope also works but grants broader access.

Forgejo (self-hosted)

Read assets/renovate.yml.forgejo.tmpl. Replace <forgejo-instance> with your instance hostname (e.g. codeberg.org) and <runner-label> with your runner tag (e.g. codeberg-small). Write the result to .forgejo/workflows/renovate.yml (no substitutions for checkout or renovate — pinned defaults). Check for newer versions > 30 days old and update if needed.

Uses the $FORGEJO_ENV pattern so the env-var steps can be overridden via forgejo-runner exec --env for local testing.

Requires RENOVATE_TOKEN as a repository secret.

README update

After creating the workflow file, add the following section to README.md so that contributors can run a Renovate dry-run locally.

For GitHub projects:

act workflow_dispatch -W .github/workflows/renovate.yml \
  --env RENOVATE_DRY_RUN=full \
  --env RENOVATE_REPOSITORIES=owner/repo \
  --env LOG_LEVEL=info \
  -s RENOVATE_TOKEN=<token>

Replace owner/repo with your repository path and <token> with a GitHub classic PAT with repo scope.

For Forgejo projects:

forgejo-runner exec \
  -W .forgejo/workflows/renovate.yml \
  --env RENOVATE_DRY_RUN=full \
  --env RENOVATE_REPOSITORIES=owner/repo \
  --env LOG_LEVEL=info \
  -s RENOVATE_TOKEN=<token>

Replace owner/repo with your repository path and <token> with a Forgejo PAT with repo scope.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.