From d403eb46ce8ca0401a9b55f66b5d56b552be7ed6 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 14 Jun 2022 14:26:16 -0400 Subject: [PATCH 1/2] chore: remove redundant safe-directory configuration This has been resolved in the [checkout](https://github.com/actions/checkout/pull/770) action and would already be set by default. --- start.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/start.sh b/start.sh index 5faf53a..536f27b 100755 --- a/start.sh +++ b/start.sh @@ -24,6 +24,5 @@ fi cd ${INPUT_DIRECTORY} remote_repo="${INPUT_GITHUB_URL_PROTOCOL}//${GITHUB_ACTOR}:${INPUT_GITHUB_TOKEN}@${INPUT_GITHUB_URL}/${REPOSITORY}.git" -git config --local --add safe.directory ${INPUT_DIRECTORY} git push "${remote_repo}" HEAD:${INPUT_BRANCH} --follow-tags $_FORCE_OPTION $_TAGS; From f0a42d466f4a2ac5a34ba8b7ded90f453c78a8f3 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 14 Jun 2022 14:26:50 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/README.md b/README.md index e1c30fa..e828e7b 100644 --- a/README.md +++ b/README.md @@ -50,17 +50,6 @@ jobs: | directory | string | '.' | Directory to change to before pushing. | | repository | string | '' | Repository name.
Default or empty repository name represents
current github repository.
If you want to push to other repository,
you should make a [personal access token](https://github.com/settings/tokens)
and use it as the `github_token` input. | -## Troubeshooting - -Please be aware, if your job fails and the corresponding output log looks like the following error, update your used verson of the action to `ad-m/github-push-action@master`: -```log -Push to branch *************** -fatal: unsafe repository ('/github/workspace' is owned by someone else) -To add an exception for this directory, call: - - git config --global --add safe.directory /github/workspace -``` - ## License The Dockerfile and associated scripts and documentation in this project are released under the [MIT License](LICENSE).