mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
ci: do not set safe.directory
for commitlint checkout
Commitlint fails with errors like: ``` git fetch -v origin devel fatal: unsafe repository ('/go/src/github.com/ceph/ceph-csi' is owned by someone else) To add an exception for this directory, call: git config --global --add safe.directory /go/src/github.com/ceph/ceph-csi make: *** [Makefile:153: commitlint] Error 128 ``` By not setting the option with actions/checkout@v3, the error should not happen anymore. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
a95a6213eb
commit
9533889b64
1
.github/workflows/commitlint.yaml
vendored
1
.github/workflows/commitlint.yaml
vendored
@ -17,6 +17,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
set-safe-directory: false
|
||||
- name: commitlint
|
||||
# yamllint disable-line rule:line-length
|
||||
run: make containerized-test CONTAINER_CMD=docker TARGET=commitlint GIT_SINCE="origin/${GITHUB_BASE_REF}"
|
||||
|
Loading…
Reference in New Issue
Block a user