[CI] Mark the workspace as safe for the matrix job (#2848)

# Motivation

Some scripts that run as part of a matrix job may want to call git
commands and the workspace needs to be marked as safe.

# Modification

This PR adds a step to mark the workspace as safe
This commit is contained in:
Franz Busch authored and GitHub committed 2024-08-20 09:50:03 +01:00
1 parent 837a1ddf57
commit 65db2dbfcb
1 file changed
+3
+3
View File
@@ -83,6 +83,9 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Mark the workspace as safe
# https://github.com/actions/checkout/issues/766
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Run matrix job
if: ${{ matrix.swift.enabled }}
env: