runner icon indicating copy to clipboard operation
runner copied to clipboard

`Missing download info for` message could be more helpful

Open jsoref opened this issue 1 year ago • 7 comments

Describe the bug When you specify a uses: some/action@non-existent-ref-name, the error message isn't terribly helpful

https://github.com/actions/runner/blob/a0a0a76378ad3ce3745fbf27f69cafc506e4ed00/src/Runner.Worker/ActionManager.cs#L212

To Reproduce

  1. Create and run a workflow that uses an action with a reference to a ref name that doesn't exist, https://github.com/check-spelling-sandbox/onedrive/actions/runs/14161440115)
  2. See error

Expected behavior Error message should suggest,

  • if the repository exists, that it's likely the reference name is bad.
  • if no public repository exists and the owner doesn't match the current repository's owner, that "either the repository doesn't exist, or it's private and that you cannot use private repositories in uses:"
  • if no public repository exists and the owner does match the current repository's owner, that "either the repository doesn't exist, or it's private and you haven't set the repository to be used, but you could..."

Runner Version and Platform

Version of your runner? 2.323.0

OS of the machine running the runner? Ubuntu 24.04.2

What's not working?

Please include error messages and screenshots.

Getting action download info Error: Missing download info for check-spelling-sandbox/check-spelling@prereleae

Job Log Output

If applicable, include the relevant part of the job / step log output here. All sensitive information should already be masked out, but please double-check before pasting here.

Runner and Worker's Diagnostic Logs

jsoref avatar Apr 02 '25 03:04 jsoref

i got the same issue. Is there any workaround on this?

dniald avatar Apr 24 '25 03:04 dniald

My guess is your refname is bad. Do you have a log to point to?

jsoref avatar Apr 24 '25 11:04 jsoref

My guess is your refname is bad. Do you have a log to point to?

i just got this below. What I'm missing here?

Image Image

dniald avatar Apr 24 '25 13:04 dniald

Technically you aren't missing anything, you just have an extraneous v. The tag is: https://github.com/aquasecurity/trivy-action/releases/tag/0.29.0

So you need to change:

-uses: aquasecurity/[email protected]
+uses: aquasecurity/[email protected]

jsoref avatar Apr 24 '25 13:04 jsoref

The other one is different...

There are workflows that reference this repository: https://github.com/search?q=%22peter-evans%2Fcreate-issue%40%22+&type=code

But, I checked, and can't find any workflow runs that successfully used a repository but that name.

How did you come to try to use that repository name? I'd expect you want the one listed in: https://github.com/peter-evans?tab=repositories&q=create-i&type=&language=&sort=

jsoref avatar Apr 24 '25 13:04 jsoref

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 15 days.

github-actions[bot] avatar Apr 27 '26 00:04 github-actions[bot]

This is still an issue. I've updated the expected results as there's a new feature for private repositories that allows the repository to be shared for use by other repositories in the same organization.

jsoref avatar Apr 27 '26 03:04 jsoref