diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 0ff8a24e..dd56a3bd 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -20,6 +20,8 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha || github.sha }} # Use PR head when available, otherwise the pushed SHA. fetch-depth: 0 # a full history is required for pull request analysis + - name: Mark repository as safe for Git + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Prepare Qodana cache directories run: | mkdir -p "${RUNNER_TEMP}/qodana/caches"