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

Error with repository ownership #556

Closed
Eric-Jalal opened this issue Oct 4, 2023 · 4 comments
Closed

Error with repository ownership #556

Eric-Jalal opened this issue Oct 4, 2023 · 4 comments
Labels
status: stale Inactive issues and PRs type: question Further information is requested

Comments

@Eric-Jalal
Copy link

Eric-Jalal commented Oct 4, 2023

With these arguments:

  with:
    author_name: Github
    default_author: github_actor
    message: Convert new logos
    push: true

I'm getting this error:

Error: fatal: detected dubious ownership in repository at '/__w/my-repo-name/my-repo-name'
To add an exception for this directory, call:

	git config --global --add safe.directory /__w/my-repo-name/my-repo-name

And can I enter raw git commands in this step? or I have to make another step if the only way through this is to add that exception for this directory?

@Eric-Jalal Eric-Jalal added the type: question Further information is requested label Oct 4, 2023
@EndBug
Copy link
Owner

EndBug commented Oct 4, 2023

Hey, how are you checking out the repo?
Can you share your workflow and logs?

@Eric-Jalal
Copy link
Author

      - name: Add repository ownership exception
        run: |
          git config --global --add safe.directory /__w/my-repo/my-repo

      - name: Commit converted resources
        uses: my-own-actions/add-and-commit@main
        with:
          author_name: Github
          default_author: github_actor
          message: Convert new logos
          push: true

I added the ownership exception and even with that it says working tree is clean

@EndBug
Copy link
Owner

EndBug commented Oct 9, 2023

Can you share your workflow and/or a link to the action run?
I need to see how you are checking out the repo (so the step that calls actions/checkout, or the git commands you're using) to be able to help you

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the status: stale Inactive issues and PRs label Oct 30, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: stale Inactive issues and PRs type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants