Skip to content
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

Asset downloading suceeds but got "Not Found" in response #56

Open
IzumiSy opened this issue Jun 15, 2023 · 1 comment
Open

Asset downloading suceeds but got "Not Found" in response #56

IzumiSy opened this issue Jun 15, 2023 · 1 comment

Comments

@IzumiSy
Copy link

IzumiSy commented Jun 15, 2023

I am trying to download assets published on the private repository in my org.

Run jaxxstorm/[email protected]
==> System reported platform: linux
==> Using platform: linux
==> System reported arch: x64
==> Using arch: x64
==> Using default file extension matching: .(tar.gz|zip)
==> Binaries will be located at: /opt/hostedtoolcache/mypkg-inc/mypkg/latest/linux-x64
searching for checksums.txt with (linux|x86_64|x64|amd64).*(linux|x86_64|x64|amd64).*.(tar.gz|zip)
searching for mypkg_darwin_v2023.06.13-1_arm64.tar.gz with (linux|x86_64|x64|amd64).*(linux|x86_64|x64|amd64).*.(tar.gz|zip)
searching for mypkg_darwin_v2023.06.13-1_x86_64.tar.gz with (linux|x86_64|x64|amd64).*(linux|x86_64|x64|amd64).*.(tar.gz|zip)
searching for mypkg_linux_v2023.06.13-1_arm64.tar.gz with (linux|x86_64|x64|amd64).*(linux|x86_64|x64|amd64).*.(tar.gz|zip)
searching for mypkg_linux_v2023.06.13-1_x86_64.tar.gz with (linux|x86_64|x64|amd64).*(linux|x86_64|x64|amd64).*.(tar.gz|zip)
Downloading mypkg from https://api.github.com/repos/mypkg-inc/mypkg/releases/assets/112551931
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /opt/hostedtoolcache/mypkg-inc/mypkg/latest/linux-x64 -f /home/runner/work/_temp/6c684165-caf8-4fa7-b77c-8ddb5b5f440e
Automatically extracted release asset mypkg_linux_v2023.06.13-1_x86_64.tar.gz to /opt/hostedtoolcache/mypkg-inc/mypkg/latest/linux-x64
Adding /opt/hostedtoolcache/mypkg-inc/mypkg/latest/linux-x64 to the path
Successfully installed mypkg
Binaries available at /opt/hostedtoolcache/mypkg-inc/mypkg/latest/linux-x64

The response of https://api.github.com/repos/mypkg-inc/mypkg/releases/assets/112551931 is as follows.

{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest/reference/repos#get-a-release-asset"
}

I am giving token field with my own, and without it the action throws an error with (Error: Not Found) so it looks working.

@jaxxstorm
Copy link
Owner

@IzumiSy i'd love to repro this, but it's tough on a private repo. Can you provide more info?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants