Auth error during downloading artifact from archive_download_url
#149570
-
Select Topic AreaQuestion BodyI fetch data about workflow runs etc including artifacts. It worked several months before with this code response = Net::HTTP.get_response(archive_download_url, { "Authorization" => "Bearer #{TOKEN}" })
Couple of days ago it started to fail with:
I notes that artifacts URLs has changed to How to do proper authentication to download artifacts now? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, I got it. |
Beta Was this translation helpful? Give feedback.
Ok, I got it.
Request to
archive_download_url
points tohttps://api.github.com
and returns redirect, then I got value fromlocation
response header and make second request to*.blob.core.windows.net
if I omitAuthorization
headers it works ok, if I add it then request fails.It was definitely some change in behavior which I mentioned Jan 17th, because before it works with
Authorization
header.Close this ticket, and left it here, maybe it will help someone.