fix: gitleaks clone depth and opuslib discovery on musl
Some checks failed
CI / gitleaks (push) Failing after 3s
CI / lint (push) Successful in 27s
CI / test (3.11) (push) Successful in 2m13s
CI / test (3.13) (push) Successful in 2m18s
CI / test (3.12) (push) Successful in 2m20s
CI / build (push) Has been skipped

Remove invalid --depth=0 from gitleaks checkout (needs full history).
Add opus symlink and pymumble/opuslib patch step to test jobs so
ctypes.find_library works on Alpine/musl.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
user
2026-02-22 07:11:50 +01:00
parent 8f1df167b9
commit ad1de1653e

View File

@@ -18,7 +18,7 @@ jobs:
- name: Checkout
run: |
apk add --no-cache git
git clone --depth=0 "$REPO_URL" .
git clone "$REPO_URL" .
git checkout "${{ github.sha }}"
- name: Scan for secrets
run: gitleaks detect --source . --verbose
@@ -53,9 +53,13 @@ jobs:
git clone --depth=1 "$REPO_URL" .
git checkout "${{ github.sha }}"
- name: Install system deps
run: apk add --no-cache opus-dev
run: |
apk add --no-cache opus opus-dev
ln -sf /usr/lib/libopus.so.0 /usr/lib/libopus.so
- name: Install Python deps
run: pip install -q -r requirements-dev.txt
- name: Patch pymumble/opuslib for musl
run: python3 patches/apply_pymumble_ssl.py
- name: Test
run: pytest -v