Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix `fatal: unsafe repository ('/github/workspace' is owned by someon… #19

Merged
merged 2 commits into from
Apr 13, 2022

Conversation

tokestermw
Copy link
Contributor

@tokestermw tokestermw commented Apr 13, 2022

…e else)`

What this PR does / Why we need it

Looks like there were some changes to git, and this action currently errors out.

fatal: unsafe repository ('/github/workspace' is owned by someone else)

The fix is to add a safe directory (tested in a separate repo, but please test here as well).

Related Stack Overflow: https://stackoverflow.com/questions/71849415/cannot-add-parent-directory-to-safe-directory-on-git

Which issue(s) this PR fixes

Fixes #

…e else)`

Looks like there were some changes to git, and this action currently errors out.

```
fatal: unsafe repository ('/github/workspace' is owned by someone else)
```

The fix is to add a safe directory (tested in a separate repo).

Related Stack Overflow: https://stackoverflow.com/questions/71849415/cannot-add-parent-directory-to-safe-directory-on-git
@mayankagrawal-hpe
Copy link

Please Merge this PR soon. our workflows are failing because of the same issue

entrypoint.sh Outdated Show resolved Hide resolved
@gligorkot
Copy link

@micnncim any chance we can please merge this one? It's causing failures for us as well 🙏 thanks in advance

@babarot
Copy link

babarot commented Apr 13, 2022

LGTM

Copy link
Member

@micnncim micnncim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this.

@micnncim micnncim merged commit b7c32da into actions-ecosystem:main Apr 13, 2022
@micnncim micnncim added the release/minor Indicates minor update to action-release-label label Apr 13, 2022
@mkrakowitzer
Copy link

So the release is failing because it depends on itself to produce the release

https://github.com/actions-ecosystem/action-get-latest-tag/runs/6008122338?check_suite_focus=true

@thealgirdas
Copy link

thealgirdas commented Apr 13, 2022

So the release is failing because it depends on itself to produce the release

https://github.com/actions-ecosystem/action-get-latest-tag/runs/6008122338?check_suite_focus=true

#21 this way you can use specific commit to get out of this deadlock

@micnncim
Copy link
Member

I manually created a new tag and release: https://github.com/actions-ecosystem/action-get-latest-tag/releases/tag/v1.6.0. Also, I overrode the v1 tag.

novak-oleksandr pushed a commit to SPSCommerce/action-get-latest-tag that referenced this pull request Apr 15, 2022
actions-ecosystem#19)

* Fix `fatal: unsafe repository ('/github/workspace' is owned by someone else)`

Looks like there were some changes to git, and this action currently errors out.

```
fatal: unsafe repository ('/github/workspace' is owned by someone else)
```

The fix is to add a safe directory (tested in a separate repo).

Related Stack Overflow: https://stackoverflow.com/questions/71849415/cannot-add-parent-directory-to-safe-directory-on-git

* Update entrypoint.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release/minor Indicates minor update to action-release-label size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants