From e39df872b3bd1a411745e7ce16c2a4bb4a25f8bf Mon Sep 17 00:00:00 2001 From: Job Date: Mon, 23 Nov 2026 18:30:41 +0000 Subject: [PATCH] fix: check out with one git clone agentos is public, so the clone needs no token. The job image has git. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/os.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/os.yml b/.gitea/workflows/os.yml index 9f2e715..eaf700e 100644 --- a/.gitea/workflows/os.yml +++ b/.gitea/workflows/os.yml @@ -20,20 +20,12 @@ jobs: os: runs-on: linux permissions: - contents: read packages: write steps: - name: Install tools - run: dnf install -yq mkosi git-core - # gitea-runner 6 removed builtin:checkout. + run: dnf install -yq mkosi - name: Check out - env: - AUTH: "Authorization: token ${{ gitea.token }}" - run: | - git init -q - git -c http.extraHeader="$AUTH" fetch -q --depth 1 \ - "${{ gitea.server_url }}/${{ gitea.repository }}" "${{ gitea.sha }}" - git checkout -q FETCH_HEAD + run: git clone -q --depth 1 -b ${{ gitea.ref_name }} ${{ gitea.server_url }}/${{ gitea.repository }} . - name: Build env: KEY: ${{ secrets.SECUREBOOT_KEY }}