diff --git a/.github/workflows/swift_matrix.yml b/.github/workflows/swift_matrix.yml index 76ba7a87f..f1182370f 100644 --- a/.github/workflows/swift_matrix.yml +++ b/.github/workflows/swift_matrix.yml @@ -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: