awslabs / amazon-ecr-credential-helper

Automatically gets credentials for Amazon ECR on docker push/docker pull
Apache License 2.0
2.45k stars 335 forks source link

Add awslabs to git safe dir #802

Closed ktasper closed 2 months ago

ktasper commented 2 months ago

Issue #, if available: Fixes the following error when running make build-in-docker for ISSUE: https://github.com/awslabs/amazon-ecr-credential-helper/issues/800

git rev-parse --short=7 HEAD > GITCOMMIT_SHA
fatal: detected dubious ownership in repository at '/go/src/github.com/awslabs/amazon-ecr-credential-helper'
To add an exception for this directory, call:

        git config --global --add safe.directory /go/src/github.com/awslabs/amazon-ecr-credential-helper
make: *** [Makefile:95: GITCOMMIT_SHA] Error 128

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.