Fix grep commands for BusyBox compatibility
Replace GNU grep --include/--exclude-dir options with find + xargs pattern for BusyBox grep compatibility on self-hosted runners. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
136ef29bd2
commit
d36a46bae8
2 changed files with 4 additions and 9 deletions
|
@ -138,10 +138,10 @@ jobs:
|
|||
- name: Check for secrets
|
||||
run: |
|
||||
echo "Checking for potential secrets..."
|
||||
! grep -r "MAPBOX_ACCESS_TOKEN" --include="*.js" --include="*.ts" --exclude-dir=node_modules --exclude-dir=dist --exclude-dir=.git . || \
|
||||
! find . -name "*.js" -o -name "*.ts" | grep -v node_modules | grep -v dist | grep -v .git | xargs grep -l "MAPBOX_ACCESS_TOKEN" || \
|
||||
(echo "❌ Found hardcoded Mapbox token!" && exit 1)
|
||||
|
||||
! grep -r "ADMIN_PASSWORD" --include="*.js" --include="*.ts" --exclude-dir=node_modules --exclude-dir=dist --exclude-dir=.git . || \
|
||||
! find . -name "*.js" -o -name "*.ts" | grep -v node_modules | grep -v dist | grep -v .git | xargs grep -l "ADMIN_PASSWORD" || \
|
||||
(echo "❌ Found hardcoded admin password!" && exit 1)
|
||||
|
||||
echo "✅ No hardcoded secrets found"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue