Skip to content

Action ref is misresolved when a numeric tag matches an abbreviated commit SHA prefix #4878

Open

Description

@Kryptos-FR

Description

A workflow referencing this existing action tag:

uses: danielpalme/ReportGenerator-GitHub-Action@5

fails during action setup with:

Unable to resolve action `danielpalme/reportgenerator-github-action@5`, the provided ref `5` is the shortened version of a commit SHA, which is not supported. Please use the full commit SHA `5f3701a41d14548c9b8e575a5c235230e515cbc0` instead.

However, 5 is an existing Git tag/release: https://github.com/danielpalme/ReportGenerator-GitHub-Action/releases/tag/5

The tag appears to point to commit 5f3701a41d14548c9b8e575a5c235230e515cbc0.

Expected behavior

An exact tag name should take precedence over abbreviated-SHA interpretation. The runner should resolve @5 to tag 5, not reject it as an abbreviated commit SHA.

Reproduction

  1. Reference the existing action tag:
uses: danielpalme/ReportGenerator-GitHub-Action@5
  1. Run the workflow.
  2. The run fails during action setup, before any workflow step executes.

Failing run/job: https://github.com/Kryptos-FR/MarkView.Avalonia/actions/runs/44748293520/job/136373344782?pr=276

Suspected cause

The tag name 5 is also a hexadecimal prefix of commit 5f3701a41d14548c9b8e575a5c235230e515cbc0. The resolver appears to encounter this ambiguity and incorrectly classifies 5 as an abbreviated SHA.

Workaround

The failure can be avoided by using the exact release tag:

uses: danielpalme/[email protected]

or the full commit SHA:

uses: danielpalme/ReportGenerator-GitHub-Action@5f3701a41d14548c9b8e575a5c235230e515cbc0

Note : it does break existing workflow without changes that were previously pointing to a previous v5 version that didn't have that issue.

Activity

  1. added
    bug
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions