Stabilize iOS/watchOS/tvOS apps and add cross-platform audit remediation

This commit is contained in:
Trey t
2026-02-11 12:54:40 -06:00
parent e40275e694
commit acce712261
77 changed files with 2940 additions and 765 deletions

23
scripts/ci/scan_tokens.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
cd "$ROOT_DIR"
PATTERN='(Token[[:space:]]+[A-Za-z0-9._-]{20,}|eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}|\b[a-fA-F0-9]{40,}\b)'
MATCHES="$(rg -n --no-heading -S "$PATTERN" \
iphone WekoutThotViewer SharedCore \
--glob '!**/*.xcodeproj/**' \
--glob '!**/Tests/**' \
--glob '!**/*.md' \
--glob '!**/.build/**' || true)"
if [[ -n "$MATCHES" ]]; then
echo "Potential hardcoded token(s) detected:" >&2
echo "$MATCHES" >&2
echo "If a match is intentional, redact it or move it to secure runtime configuration." >&2
exit 1
fi
echo "Token scan passed."