Merge pull request #13271 from Bo98/image-spec-pin

github_packages: pin image spec schema
This commit is contained in:
Bo Anderson 2022-05-11 05:06:13 +01:00 committed by GitHub
commit 87bcd19353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ class GitHubPackages
end
def schema_uri(basename, uris)
url = "https://raw.githubusercontent.com/opencontainers/image-spec/master/schema/#{basename}.json"
url = "https://raw.githubusercontent.com/opencontainers/image-spec/170393e57ed656f7f81c3070bfa8c3346eaa0a5a/schema/#{basename}.json"
out, = curl_output(url)
json = JSON.parse(out)