mirror of
https://github.com/actions/checkout.git
synced 2026-01-13 23:53:06 +08:00
Compare commits
2 Commits
910aef5639
...
ae65316283
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae65316283 | ||
|
|
5a01a5fbf4 |
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user