mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-20 17:00:15 +03:00
Compare commits
2 commits
ae65316283
...
910aef5639
Author | SHA1 | Date | |
---|---|---|---|
![]() |
910aef5639 | ||
![]() |
e16c3a7b55 |
1 changed files with 2 additions and 2 deletions
|
@ -325,7 +325,7 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
run: >-
|
||||
git status
|
||||
|| git config --system --add safe.directory "$GITHUB_WORKSPACE"
|
||||
|| git config --system --add safe.directory "${PWD}"
|
||||
```
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue