Skip to content

Missing download info for message could be more helpful #3783

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jsoref opened this issue Apr 2, 2025 · 5 comments
Open

Missing download info for message could be more helpful #3783

jsoref opened this issue Apr 2, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@jsoref
Copy link
Contributor

jsoref commented Apr 2, 2025

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

throw new Exception($"Missing download info for {lookupKey}");

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, that "either the repository doesn't exist, or it's private and that you cannot use private repositories in uses:"

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 jsoref added the bug Something isn't working label Apr 2, 2025
@dniald
Copy link

dniald commented Apr 24, 2025

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

@jsoref
Copy link
Contributor Author

jsoref commented Apr 24, 2025

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

@dniald
Copy link

dniald commented Apr 24, 2025

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

@jsoref
Copy link
Contributor Author

jsoref commented Apr 24, 2025

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/trivy-action@v0.29.0
+uses: aquasecurity/trivy-action@0.29.0

@jsoref
Copy link
Contributor Author

jsoref commented Apr 24, 2025

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=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants