CI: add manual clone step to all jobs

This commit is contained in:
Jarian Cottingham 2026-07-04 18:03:12 +00:00
parent c38f57a2ae
commit 9119a1dce6

View File

@ -14,11 +14,9 @@ jobs:
steps: steps:
- name: Clone repo - name: Clone repo
run: | run: |
echo "Workspace: $GITHUB_WORKSPACE"
rm -rf $GITHUB_WORKSPACE/* rm -rf $GITHUB_WORKSPACE/*
git clone --depth 1 https://git.example.com/jarianc/youtube-cli $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 git -C $GITHUB_WORKSPACE checkout $GITHUB_SHA 2>/dev/null || true
ls -la $GITHUB_WORKSPACE/
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -37,6 +35,12 @@ jobs:
container: container:
image: gitea-job-image image: gitea-job-image
steps: 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 - name: Install dependencies
run: | run: |
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip
@ -52,6 +56,12 @@ jobs:
image: gitea-job-image image: gitea-job-image
options: --privileged -v /var/run/docker.sock:/var/run/docker.sock options: --privileged -v /var/run/docker.sock:/var/run/docker.sock
steps: 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 - name: Build Docker image
run: | run: |
docker build -t youtube-cli:test --no-cache . docker build -t youtube-cli:test --no-cache .
@ -61,6 +71,12 @@ jobs:
container: container:
image: gitea-job-image image: gitea-job-image
steps: 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) - name: Run bandit (Python SAST)
run: | run: |
pip3 install bandit pip3 install bandit