From 9119a1dce61d042b4f432ae73d35e1c714bb61b6 Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Sat, 4 Jul 2026 18:03:12 +0000 Subject: [PATCH] CI: add manual clone step to all jobs --- .gitea/workflows/ci.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5ae96bd..5cd9a11 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -14,11 +14,9 @@ jobs: steps: - name: Clone repo run: | - echo "Workspace: $GITHUB_WORKSPACE" rm -rf $GITHUB_WORKSPACE/* git clone --depth 1 https://git.example.com/jarianc/youtube-cli $GITHUB_WORKSPACE git -C $GITHUB_WORKSPACE checkout $GITHUB_SHA 2>/dev/null || true - ls -la $GITHUB_WORKSPACE/ - name: Install dependencies run: | @@ -37,6 +35,12 @@ jobs: container: image: gitea-job-image steps: + - name: Clone repo + run: | + rm -rf $GITHUB_WORKSPACE/* + git clone --depth 1 https://git.example.com/jarianc/youtube-cli $GITHUB_WORKSPACE + git -C $GITHUB_WORKSPACE checkout $GITHUB_SHA 2>/dev/null || true + - name: Install dependencies run: | python3 -m pip install --upgrade pip @@ -52,6 +56,12 @@ jobs: image: gitea-job-image options: --privileged -v /var/run/docker.sock:/var/run/docker.sock steps: + - name: Clone repo + run: | + rm -rf $GITHUB_WORKSPACE/* + git clone --depth 1 https://git.example.com/jarianc/youtube-cli $GITHUB_WORKSPACE + git -C $GITHUB_WORKSPACE checkout $GITHUB_SHA 2>/dev/null || true + - name: Build Docker image run: | docker build -t youtube-cli:test --no-cache . @@ -61,6 +71,12 @@ jobs: container: image: gitea-job-image steps: + - name: Clone repo + run: | + rm -rf $GITHUB_WORKSPACE/* + git clone --depth 1 https://git.example.com/jarianc/youtube-cli $GITHUB_WORKSPACE + git -C $GITHUB_WORKSPACE checkout $GITHUB_SHA 2>/dev/null || true + - name: Run bandit (Python SAST) run: | pip3 install bandit