Using checkout within a Docker container
Hi, I use actions/checkout with a Docker image
jobs:
dockerRun:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ubuntu: [ 'focal' ]
container: hannesa2/abc-${{ matrix.ubuntu }}-4:pr-1
steps:
- name: investigate
run: |
pwd
whoami
ls -la
id -u
- name: Checkout
uses: actions/checkout@v2
and run into

Does someone has an idea how to solve this user permission issue ?
I added the line below after the checkout, in the picture in the Run drop down menu, should see a similar git command, suppose to be fixed in version 3 -run git config --global --add safe.directory ${GITHUB_WORKSPACE}
I changed to
- name: Checkout
uses: actions/[email protected]
- name: Build with Docker
run: |
(just for me to remember, it's branch DockerMissingPackageFix of a private repo)
I'm not sure, if I can do something better ?
Sorry misread the issue in the photo, your issue states mkdir is denied, I thought it was this issue https://github.com/actions/checkout/issues/766
Sorry misread the issue in the photo, your issue states mkdir is denied, I thought it was this issue #766
Any Idea what's wrong here and how to fix ?
To show issue, I transferred to public repo https://github.com/hannesa2/alexa-auto-sdk-public/pull/3
Try
container:
image: <image>
options: --user root
--user root
This worked for me, for now
Thank you ! With your help it's works now.