You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
by comparing the log to default runner, I suspect it's related to git ownership issue. I had the following warning in log.
Run flutter doctor -v
fatal: detected dubious ownership in repository at '/actions-runner/_work/_tool/flutter/stable-3.10.0-x64'
To add an exception for this directory, call:
I tried to add git config call both before and after use action without luck
do-the-job:
name: Do the job on the runner
needs: start-runner # required to start the main job when the runner is ready
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '11'
- name: fix flutter git permission
run: git config --global --add safe.directory /actions-runner/_work/_tool/flutter/stable-3.10.0-x64
env:
HOME: ${{ github.workspace }}
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.0"
channel: "stable"
- run: flutter doctor -v
do-the-job:
name: Do the job on the runner
needs: start-runner # required to start the main job when the runner is ready
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '11'
- name: fix flutter git permission
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.0"
channel: "stable"
- run: git config --global --add safe.directory /actions-runner/_work/_tool/flutter/stable-3.10.0-x64
env:
HOME: ${{ github.workspace }}
- run: flutter doctor -v
both fail ,. if i just call git config without setting home, it will fail on $HOME not set.
What's the correct way to use this action on self hosted runner? I think it's related to the git things but can;t figure out how to resolve it.
Thanks !
The text was updated successfully, but these errors were encountered:
The following is caused by incorrect ownership/permissions for the user that setup the worker, I came across this when I realised one of my workers was running as root and then I changed it to run as a user, this error was then thrown, the easiest fix is to remove the bad folders and let GitHub fix when it does the checkout for that folder.
fatal: detected dubious ownership in repository at '/actions-runner/_work/_tool/flutter/stable-3.10.0-x64'
I try to use this action on ec2 with self host runner, eventual failure on
by comparing the log to default runner, I suspect it's related to git ownership issue. I had the following warning in log.
I tried to add git config call both before and after use action without luck
both fail ,. if i just call git config without setting home, it will fail on $HOME not set.
What's the correct way to use this action on self hosted runner? I think it's related to the git things but can;t figure out how to resolve it.
Thanks !
The text was updated successfully, but these errors were encountered: