Files
renovate/lib/modules/manager
Jamie Tanna b91f928aa0 fix(workers/repository/lookup): warn when a tag is missing its v prefix (#47155)
When a GitHub Actions Workflow digest pins against a repository that
tags releases with the `v` prefix, but the Workflow itself doesn't use
the `v` like:

    uses: renovatebot/github-action@abd08c7549 # 46.1.5

we correctly match `46.1.5` to the release `v46.1.5` and propose an
update, but when we do a `digest` update (which confirms whether the
current digest SHA is still what the tag is pointing to) it uses
`46.1.5` as its `newValue`.

We look for a release with that version verbatim, and because it's
missing the `v` prefix, we'll perform a failed tag lookup:

    DEBUG: github/tags.findCommitOfTag: Tag 46.1.5 not found for renovatebot/github-action
    DEBUG: Could not determine new digest for update.

As we have a `currentDigest`, this also adds a warning for the
dependency, and we'll never be able to update if the underlying tag has
moved, because we can't look up the tag's SHA.

Although we could retry the lookup with the `v` prefix, we should
instead treat this as the misconfiguration it is, and surface it more
visibly to users with a WARN log.

If we did provide a retry, this could lead to a supply chain attack
where a repository maintainer could push both a `1.2.3` and `v1.2.3` and
convince Renovate to update to a malicious version.

Co-authored-by: Claude Sonnet 5.5 <jamie.tanna+claude-code@mend.io>
2026-10-21 14:11:16 +00:00
..