Skip to content

Commit 79fe4e6

Browse files
committed
chore(workflow): silence docs data logs
- Redirect updater output to avoid leaking RPC URLs and API keys - Ensure the ignored data directory exists before copying generated files
1 parent f256c39 commit 79fe4e6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/update-docs-data.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,15 @@ jobs:
7575
- name: Generate docs data
7676
working-directory: docs-data-updater
7777
run: |
78-
# Run the data generation script
79-
pnpm start
78+
# Silence all output: error messages can include RPC URLs with
79+
# embedded API keys, and this public repo's logs are world-readable
80+
pnpm start > /dev/null 2>&1
8081
8182
- name: Copy generated markdown files to docs data directory
8283
run: |
8384
# Copy the three generated markdown files from docs-data-updater/data/ to data/
85+
# (data/ is gitignored since #156, so it doesn't exist in a fresh checkout)
86+
mkdir -p data
8487
if [ -d "docs-data-updater/data" ]; then
8588
# Copy the specific generated files
8689
for file in chain-details.md supported-chains.md supported-tokens.md; do

0 commit comments

Comments
 (0)