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
- Drop sparse checkout + sed; fetch global-exclude.txt via GitHub API then raw URL
- Fallback heredoc matches trufflehog/global-exclude.txt when both fail
- Remove obsolete .trufflehog-shared exclude; clarify how to edit org-wide patterns
Made-with: Cursor
echo "Loaded exclude patterns from raw.githubusercontent.com (${REF})"
67
+
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).
70
+
cat > "${DEST}" <<'EOF'
71
+
# TruffleHog --exclude-paths: one Go regexp per non-blank, non-# line.
72
+
#
73
+
# To change org-wide behavior: edit this file and merge to security-github-actions main.
74
+
# Consumer repos load it at runtime via the GitHub API (no changes needed in those repos).
75
+
76
+
# Lock files and checksums (contain hashes, not secrets)
77
+
path:go\.sum$
78
+
path:go\.mod$
79
+
80
+
# Dependency manifests (contain URLs that trigger false positives)
81
+
path:package\.json$
82
+
path:package-lock\.json$
83
+
path:pnpm-lock\.yaml$
84
+
path:yarn\.lock$
85
+
path:poetry\.lock$
86
+
path:Pipfile\.lock$
87
+
path:uv\.lock$
88
+
path:Cargo\.lock$
89
+
path:Gemfile\.lock$
90
+
91
+
# Grafana plugin metadata
92
+
path:grafana\.json$
93
+
94
+
# Go vendored dependencies (third-party blobs; high false-positive rate)
0 commit comments