From b1391cea6e05ee19a072f75a870f24a49a548b07 Mon Sep 17 00:00:00 2001 From: Archicratia Date: Wed, 21 Jan 2026 19:31:42 +0100 Subject: [PATCH] Revert "Merge pull request 'ci: checkout without external actions (no github.com)' (#43) from fix/ci-no-external-actions into master" This reverts commit 92b01a43b26be5191a346fc1df4a5f5be4262821, reversing changes made to b6b9855f583373b3500a7dc9590e8d515d88d234. --- .gitea/workflows/ci.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 884f43e..dc89f8e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,32 +13,14 @@ jobs: image: node:20-bookworm-slim steps: - - name: Install base tools (git + certs) + - name: Install git (needed by checkout) run: | - set -e apt-get update apt-get install -y --no-install-recommends git ca-certificates - rm -rf /var/lib/apt/lists/* git --version - - name: Checkout (from Gitea, no external actions) - env: - SERVER: ${{ github.server_url }} - REPO: ${{ github.repository }} - SHA: ${{ github.sha }} - TOKEN: ${{ secrets.CI_TOKEN }} - run: | - set -euo pipefail - - if [ -n "${TOKEN:-}" ]; then - AUTH="$(printf "oauth2:%s" "$TOKEN" | base64 | tr -d '\n')" - git -c http.extraHeader="AUTHORIZATION: basic $AUTH" clone "$SERVER/$REPO.git" . - else - echo "ℹ️ CI_TOKEN absent → clone sans auth (repo public ou accès runner déjà OK)." - git clone "$SERVER/$REPO.git" . - fi - - git checkout "$SHA" + - name: Checkout + uses: actions/checkout@v4 - name: Install deps run: npm ci