git.alpinelinux.org/cgit/alpine-secdb redirect to https://github.com/alpinelinux/alpine-secdb causing issues with git clone via https (CLAIR SCANNER)
Hopefully this is the right place. I was checking out goharbor, and noticed that clair was having some issues with the alpine vulnerability database downloads. Looks like clair https://github.com/coreos/clair/blob/master/ext/vulnsrc/alpine/alpine.go\#L38 is cloning via https and is having issues with the redirect.
{Event not pull alpine-secdb repository“,”Level“:”error“,”Location“:”alpine.go:186“,”Time“:”2018-08-23 02:13:59.211600“,”error“:”exit status 128“,”output“:”Cloning into ‘.’…\nfatal: unable to update url base from redirection:\n asked for: https://git.alpinelinux.org/cgit/alpine-secdb/info/refs?service=git-upload-pack\\n redirect: https://github.com/alpinelinux/alpine-secdb\\n"}
curl -v https://git.alpinelinux.org/cgit/alpine-secdb/info/refs?service=git-upload-pack
- Trying 185.15.220.34…
…
…
…
…
< Location: https://github.com/alpinelinux/alpine-secdb
git clone https://git.alpinelinux.org/cgit/alpine-secdb
Cloning into ‘alpine-secdb’…
fatal: unable to update url base from redirection:
asked for:
https://git.alpinelinux.org/cgit/alpine-secdb/info/refs?service=git-upload-pack
redirect: https://github.com/alpinelinux/alpine-secdb
(from redmine: issue id 9329, created on 2018-08-23, closed on 2018-08-23)