Fix validate-vendor check
Git now requires `safe.directory` config to be set if the repo has a
different owner than the current user, eg. if the repo is bind-mounted
into a container that is running as root.
@@ -4,4 +4,4 @@ go_version=1.16.9
docker run --rm --env GO111MODULE=on -w /notary --volume ${PWD}:/notary \
golang:${go_version}-alpine \
- sh -c "apk update && apk add bash git && buildscripts/validate-vendor.sh"
+ sh -c "apk update && apk add bash git && git config --global safe.directory /notary && buildscripts/validate-vendor.sh"
