Commit b907f49
committed
Fix pre-commit git safe.directory in GitHub Action container
pre-commit requires git access. When running in a container, the
workspace directory is owned by a different user, triggering git's
safe.directory protection. Add git config to mark the workspace
as safe.
Ref: OSPRH-32049
Change-Id: I5f9adf820e02c71b6e14e393e4c42cc6fbe22151
Signed-off-by: Itay Matza <imatza@redhat.com>1 parent db67b2b commit b907f49
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
0 commit comments