Skip to content

Commit d7efd17

Browse files
committed
ci: exclude TypeDoc _media/ from secret scan
api/**/_media/ holds TypeDoc-copied example source (.ts/.md) with placeholder keys like 0x1234567890abcdef… — published examples, not real secrets. Exclude _media like other generated output so the scan stops failing on the 0.20.8 API docs. Real-source coverage (hand-authored docs/config, contextual private-key assignments everywhere) is unchanged.
1 parent 09d7496 commit d7efd17

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/check-secrets.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
NC='\033[0m'
3030
3131
# 排除的目录
32-
EXCLUDED_DIRS="node_modules|\.git|\.netlify|\.svelte-kit|build|dist|\.next|contracts/broadcast|contracts/cache|contracts/lib|test-results|playwright-report|\.auth|vendor|cache|out"
32+
# _media/ holds TypeDoc-generated example source (.ts/.md) copied into the
33+
# API docs; these are published examples with placeholder keys (e.g.
34+
# 0x1234…), not real source — exclude them like other generated output.
35+
EXCLUDED_DIRS="node_modules|\.git|\.netlify|\.svelte-kit|build|dist|\.next|contracts/broadcast|contracts/cache|contracts/lib|test-results|playwright-report|\.auth|vendor|cache|out|_media"
3336
3437
# 扫描的文件扩展名
3538
SCAN_EXTENSIONS="\.(ts|tsx|js|jsx|svelte|sol|md|json|env|example|toml|yaml|yml)$"

0 commit comments

Comments
 (0)