File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 env :
2222 REVISER_FULL_TESTS : " true"
2323 steps :
24+ # pkgcheck-action checks the repo out on the host (as uid 1001), then
25+ # runs its checks in a Docker container as root. libgit2 in the image
26+ # refuses to open a repository owned by a different user, so the job
27+ # dies on the first git call:
28+ #
29+ # repository path '/github/workspace/' is not owned by current user
30+ #
31+ # The container mounts $RUNNER_TEMP/_github_home as its HOME, so writing
32+ # the git configuration there is what reaches it. Nothing in the package
33+ # can prevent this; the image is pinned upstream to :latest and started
34+ # enforcing ownership validation.
35+ - name : Mark the workspace safe for the pkgcheck container
36+ run : |
37+ mkdir -p "${RUNNER_TEMP}/_github_home"
38+ git config --file "${RUNNER_TEMP}/_github_home/.gitconfig" \
39+ --add safe.directory /github/workspace
40+
2441 - uses : ropensci-review-tools/pkgcheck-action@main
2542 continue-on-error : false
2643 with :
You can’t perform that action at this time.
0 commit comments