There was an error while loading. Please reload this page.
1 parent cc7fb37 commit 98a2b36Copy full SHA for 98a2b36
1 file changed
lib/quayio/scanner/image.rb
@@ -44,9 +44,9 @@ def raw_image
44
45
@raw_image = begin
46
JSON.parse(
47
- RestClient.get("https://quay.io/api/v1/repository/#{repo}/image",
+ RestClient.get("https://quay.io/api/v1/repository/#{repo}/tag/#{tag}/images",
48
authorization: "Bearer #{quayio_token}", accept: :json)
49
- )['images'].detect { |i| i['tags'].include?(tag) }
+ )['images'].first
50
rescue RestClient::ExceptionWithResponse => err
51
return nil if err.http_code == 404 # ignore unknown repos
52
raise err
0 commit comments