From 39194bd1e054a560034d3b5b6bee7114f8139f2b7f09049e7079e3e403e2442b Mon Sep 17 00:00:00 2001 From: Chillcog Date: Thu, 23 Jul 2026 18:10:51 -0700 Subject: [PATCH] Fix git sha256 negotiation in workflows Add git configuration to fix SHA256 object format compatibility issues across all CI/CD workflows. Configure protocol version 2, disable fsckObjects, and clear negotiation algorithm. Also enhance checkout actions with full history fetch and explicit ref specification. Update .gitignore to exclude TODO.md. --- .gitea/workflows/apps.yml | 10 ++++++++++ .gitea/workflows/bot.yml | 7 +++++++ .gitea/workflows/box64.yml | 8 ++++++++ .gitea/workflows/games.yml | 12 ++++++++++++ .gitea/workflows/oses.yml | 12 ++++++++++++ .gitea/workflows/red.yml | 11 +++++++++++ .gitea/workflows/steamcmd.yml | 11 +++++++++++ .gitea/workflows/tarkov.yml | 11 +++++++++++ .gitea/workflows/voice.yml | 11 +++++++++++ .gitea/workflows/wine.yml | 11 +++++++++++ .gitignore | 1 + 11 files changed, 105 insertions(+) diff --git a/.gitea/workflows/apps.yml b/.gitea/workflows/apps.yml index 59af177..0800ad9 100644 --- a/.gitea/workflows/apps.yml +++ b/.gitea/workflows/apps.yml @@ -29,6 +29,16 @@ jobs: fetch-depth: 0 ref: ${{ github.sha }} + - name: Fix git sha256 negotiation (force newer object format compatibility) + run: | + git config --global protocol.version 2 + git config --global transfer.fsckObjects false + git config --global fetch.negotiationAlgorithm '' + + + + + - name: Set registry image base diff --git a/.gitea/workflows/bot.yml b/.gitea/workflows/bot.yml index 24b3e2e..2916701 100644 --- a/.gitea/workflows/bot.yml +++ b/.gitea/workflows/bot.yml @@ -29,8 +29,15 @@ jobs: fetch-depth: 0 ref: ${{ github.sha }} + - name: Fix git sha256 negotiation (force newer object format compatibility) + run: | + git config --global protocol.version 2 + git config --global transfer.fsckObjects false + git config --global fetch.negotiationAlgorithm '' + - name: Login to registry (tags only) + if: startsWith(github.ref, 'refs/tags/') uses: docker/login-action@v3 with: diff --git a/.gitea/workflows/box64.yml b/.gitea/workflows/box64.yml index 1a10597..f0f772b 100644 --- a/.gitea/workflows/box64.yml +++ b/.gitea/workflows/box64.yml @@ -21,6 +21,14 @@ jobs: fetch-depth: 0 ref: ${{ github.sha }} + - name: Fix git sha256 negotiation (force newer object format compatibility) + run: | + git config --global protocol.version 2 + git config --global transfer.fsckObjects false + git config --global fetch.negotiationAlgorithm '' + + + - name: Login to registry (tags only) if: startsWith(github.ref, 'refs/tags/') diff --git a/.gitea/workflows/games.yml b/.gitea/workflows/games.yml index a5c45ce..4aa8993 100644 --- a/.gitea/workflows/games.yml +++ b/.gitea/workflows/games.yml @@ -32,6 +32,18 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.sha }} + + - name: Fix git sha256 negotiation (force newer object format compatibility) + run: | + git config --global protocol.version 2 + git config --global transfer.fsckObjects false + git config --global fetch.negotiationAlgorithm '' + + + - name: Login to registry (tags only) if: startsWith(github.ref, 'refs/tags/') diff --git a/.gitea/workflows/oses.yml b/.gitea/workflows/oses.yml index dd61931..8af5195 100644 --- a/.gitea/workflows/oses.yml +++ b/.gitea/workflows/oses.yml @@ -24,6 +24,18 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.sha }} + + - name: Fix git sha256 negotiation (force newer object format compatibility) + run: | + git config --global protocol.version 2 + git config --global transfer.fsckObjects false + git config --global fetch.negotiationAlgorithm '' + + + - name: Login to registry (tags only) if: startsWith(github.ref, 'refs/tags/') diff --git a/.gitea/workflows/red.yml b/.gitea/workflows/red.yml index 2b571f2..7080895 100644 --- a/.gitea/workflows/red.yml +++ b/.gitea/workflows/red.yml @@ -17,6 +17,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.sha }} + + - name: Fix git sha256 negotiation (force newer object format compatibility) + run: | + git config --global protocol.version 2 + git config --global transfer.fsckObjects false + git config --global fetch.negotiationAlgorithm '' + + - name: Login to registry (tags only) if: startsWith(github.ref, 'refs/tags/') diff --git a/.gitea/workflows/steamcmd.yml b/.gitea/workflows/steamcmd.yml index aad8c39..50439cc 100644 --- a/.gitea/workflows/steamcmd.yml +++ b/.gitea/workflows/steamcmd.yml @@ -27,6 +27,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.sha }} + + - name: Fix git sha256 negotiation (force newer object format compatibility) + run: | + git config --global protocol.version 2 + git config --global transfer.fsckObjects false + git config --global fetch.negotiationAlgorithm '' + + - name: Login to registry (tags only) if: startsWith(github.ref, 'refs/tags/') diff --git a/.gitea/workflows/tarkov.yml b/.gitea/workflows/tarkov.yml index 005e41a..99099f6 100644 --- a/.gitea/workflows/tarkov.yml +++ b/.gitea/workflows/tarkov.yml @@ -22,6 +22,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.sha }} + + - name: Fix git sha256 negotiation (force newer object format compatibility) + run: | + git config --global protocol.version 2 + git config --global transfer.fsckObjects false + git config --global fetch.negotiationAlgorithm '' + + - name: Login to registry (tags only) if: startsWith(github.ref, 'refs/tags/') diff --git a/.gitea/workflows/voice.yml b/.gitea/workflows/voice.yml index bd4f372..91ff860 100644 --- a/.gitea/workflows/voice.yml +++ b/.gitea/workflows/voice.yml @@ -23,6 +23,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.sha }} + + - name: Fix git sha256 negotiation (force newer object format compatibility) + run: | + git config --global protocol.version 2 + git config --global transfer.fsckObjects false + git config --global fetch.negotiationAlgorithm '' + + - name: Login to registry (tags only) if: startsWith(github.ref, 'refs/tags/') diff --git a/.gitea/workflows/wine.yml b/.gitea/workflows/wine.yml index 39bc367..3132a9d 100644 --- a/.gitea/workflows/wine.yml +++ b/.gitea/workflows/wine.yml @@ -28,6 +28,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.sha }} + + - name: Fix git sha256 negotiation (force newer object format compatibility) + run: | + git config --global protocol.version 2 + git config --global transfer.fsckObjects false + git config --global fetch.negotiationAlgorithm '' + + - name: Login to registry (tags only) if: startsWith(github.ref, 'refs/tags/') diff --git a/.gitignore b/.gitignore index 40fceef..b4fbd89 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .idea paid/ +TODO.md \ No newline at end of file