You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(trufflehog): prefixes.txt + builder for exclude rules
- Add trufflehog/prefixes.txt (plain directory prefixes) and build_exclude_file.py
- Regenerate global-exclude.txt; workflow can rebuild from script+prefixes if artifact missing
- Last-resort heredoc synced to builder output; STATIC_PATTERNS live in the script
Made-with: Cursor
echo "Built exclude file from build_exclude_file.py + prefixes.txt (raw GitHub)"
67
83
else
68
-
echo "::warning::Could not fetch trufflehog/global-exclude.txt from ${REPO}@${REF} (not on branch yet, or GITHUB_TOKEN cannot read that repo). Using bundled fallback — merge exclusions to main or allow workflows to read internal repos."
69
-
# Keep in sync with trufflehog/global-exclude.txt (used only when fetch fails).
84
+
echo "::warning::Could not fetch or rebuild TruffleHog excludes from ${REPO}@${REF}. Using last-resort bundled file — merge to main or fix token access."
85
+
# Last resort only: must match stdout of python3 trufflehog/build_exclude_file.py (same commit).
70
86
cat > "${DEST}" <<'EOF'
71
-
# TruffleHog --exclude-paths: one Go regexp per non-blank, non-# line.
87
+
# Generated by trufflehog/build_exclude_file.py + trufflehog/prefixes.txt — do not edit by hand.
0 commit comments