diff --git a/README.md b/README.md index a1dd951..2e803a9 100644 --- a/README.md +++ b/README.md @@ -325,7 +325,7 @@ jobs: - uses: actions/checkout@v4 run: >- git status - || git config --system --add safe.directory "${PWD}" + || git config --system --add safe.directory "$GITHUB_WORKSPACE" ``` This check prevent/workaround "fatal: detected dubious ownership in repository" error on self hosted runners. @@ -336,7 +336,7 @@ When using the `checkout` action in your GitHub Actions workflow, it is recommen ```yaml permissions: - contents: read + contents: read ``` # License