diff --git a/.github/scripts/sanitize-config.sh b/.github/scripts/sanitize-config.sh index 229c3939..116ec6fe 100644 --- a/.github/scripts/sanitize-config.sh +++ b/.github/scripts/sanitize-config.sh @@ -20,13 +20,11 @@ fi echo "Sanitizing config file: $CONFIG_FILE" # Use yq to: -# 1. Replace RPC URLs with TODO placeholders -# 2. Delete node.dev section +# Replace RPC URLs / provider with TODO placeholders yq -i ' .rollup.genlayerchainrpcurl = "TODO: Set your GenLayer Chain ZKSync HTTP RPC URL here" | .rollup.genlayerchainwebsocketurl = "TODO: Set your GenLayer Chain ZKSync WebSocket RPC URL here" | - .rollup.provider = "TODO: Set your GenLayer Chain ZKSync provider" | - del(.node.dev) + .rollup.provider = "TODO: Set your GenLayer Chain ZKSync provider" ' "$CONFIG_FILE" echo "Config sanitization completed" diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 03969133..3b4dccdb 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -181,13 +181,12 @@ The workflow uses composite actions for code reusability: - `.github/scripts/git-utils.sh` - Branch creation, commit, and push operations - `.github/scripts/version-utils.sh` - Version detection and validation - `.github/scripts/doc-generator.sh` - Wrapper for npm documentation generation -- `.github/scripts/sanitize-config.sh` - Sanitizes config file (replaces URLs, removes dev section) +- `.github/scripts/sanitize-config.sh` - Sanitizes config file (replaces RPC URLs and provider) - `.github/scripts/sanitize-docker-compose.sh` - Removes alloy service and volumes from docker-compose ### Config Sanitization The config sync process includes automatic sanitization using `yq`: -- **URL Replacement**: RPC URLs replaced with TODO placeholders -- **Dev Section Removal**: `node.dev` section is removed +- **URL Replacement**: RPC URLs and provider replaced with TODO placeholders ### Docker Compose Sanitization The docker-compose sync process includes automatic sanitization using `yq` and `sed`: