diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef44b2a..31557d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v4 - name: Trust workspace - run: git config --global safe.directory '*' + run: git config --global --replace-all safe.directory '*' - name: Vet run: go vet ./... diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 14e7822..e89f248 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v4 - name: Trust workspace - run: git config --global safe.directory '*' + run: git config --global --replace-all safe.directory '*' - name: Install dependencies working-directory: pages diff --git a/.github/workflows/ocr-review.yml b/.github/workflows/ocr-review.yml index 4ffcc22..e6bee99 100644 --- a/.github/workflows/ocr-review.yml +++ b/.github/workflows/ocr-review.yml @@ -73,7 +73,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Mark repository as safe directory - run: git config --global --add safe.directory '*' + run: git config --global --replace-all safe.directory '*' - name: Fetch PR head ref (ensures fork commits are available) run: git fetch origin pull/${{ github.event.pull_request.number }}/head diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1536910..e11ee7f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: - uses: actions/checkout@v4 - name: Trust workspace - run: git config --global safe.directory '*' + run: git config --global --replace-all safe.directory '*' - name: Build env: @@ -73,7 +73,7 @@ jobs: fetch-depth: 0 - name: Trust workspace - run: git config --global safe.directory '*' + run: git config --global --replace-all safe.directory '*' - name: Generate release notes from commits id: notes @@ -167,7 +167,7 @@ jobs: - uses: actions/checkout@v4 - name: Trust workspace - run: git config --global safe.directory '*' + run: git config --global --replace-all safe.directory '*' - name: Install jq run: apt-get update && apt-get install -y jq