jaxxstorm / action-install-gh-release

GitHub Action to install the Github Release binaries
Apache License 2.0
67 stars 29 forks source link

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

Open IzumiSy opened 1 year ago

IzumiSy commented 1 year ago

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

Run jaxxstorm/action-install-gh-release@v1.10.0
==> 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 commented 1 year ago

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