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

pkgcheck.base.PkgcheckException: pkgcheck scan: error: failed running git: fatal: detected dubious ownership in repository at '/github/workspace' #18

Closed
ZeroChaos- opened this issue Jan 17, 2024 · 0 comments

Comments

@ZeroChaos-
Copy link
Contributor

Per the readme, this action recommends checking out the repo with the checkout action, and then run this action after. I believe the code is checked out into ${{ github.workspace }} which translates to /github/workspace at the time of running pkgcheck-action. This leads to build failures as found in https://github.com/pentoo/pentoo-overlay/actions/runs/7560749313/job/20587445443 due to ownership issues. I've tried a lot of ways to fix this, but the easiest seems to me to simply add some code into this action to add ${{ github.workspace }} as a safe dir

ZeroChaos- added a commit to ZeroChaos-/pkgcheck-action that referenced this issue Jan 17, 2024
pkgcheck uses git for some of it's checks, however, the github.workspace
directory not being marked safe causes a failure
See also: actions/checkout#1169
See also: https://github.com/pentoo/pentoo-overlay/actions/runs/7560749313/job/20587445443
Closes: pkgcore#18
Signed-of-by: Zero_Chaos <[email protected]>
ZeroChaos- added a commit to ZeroChaos-/pkgcheck-action that referenced this issue Jan 17, 2024
pkgcheck uses git for some of it's checks, however, the github.workspace
directory not being marked safe causes a failure
See also: actions/checkout#1169
See also: https://github.com/pentoo/pentoo-overlay/actions/runs/7560749313/job/20587445443
Closes: pkgcore#18
Signed-off-by: Zero_Chaos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant