Add gitleaks binary and archive; remove README.md
All checks were successful
Code Analysis (JS/Vue) / analyze (push) Successful in 3m51s
All checks were successful
Code Analysis (JS/Vue) / analyze (push) Successful in 3m51s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user