Add gitleaks binary and archive; remove README.md

This commit is contained in:
Torsten Schulz (local)
2025-12-20 15:49:21 +01:00
parent 5594add8d1
commit 76d16e8478
4 changed files with 3 additions and 97 deletions

View File

@@ -34,11 +34,11 @@ jobs:
head -5 gitleaks.tar.gz
exit 1
fi
# Try different extraction methods
# Extract ONLY the gitleaks binary (the archive also contains README etc. which would trigger gitleaks itself)
if tar -tzf gitleaks.tar.gz >/dev/null 2>&1; then
tar -xzf gitleaks.tar.gz
tar -xzf gitleaks.tar.gz gitleaks
elif tar -tf gitleaks.tar.gz >/dev/null 2>&1; then
tar -xf gitleaks.tar.gz
tar -xf gitleaks.tar.gz gitleaks
else
echo "Error: Cannot extract archive. File type:"
file gitleaks.tar.gz