Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/release-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ jobs:
} >> "$GITHUB_OUTPUT"

- name: Install validation dependencies
run: python3 -m pip install pyyaml==6.0.3
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends ripgrep
python3 -m pip install pyyaml==6.0.3

- name: Validate release contents
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
python-version: ["3.8", "3.12"]
steps:
- uses: actions/checkout@v7.0.1
# validate.sh gates its forbidden-content scans on ripgrep being present.
- run: sudo apt-get update && sudo apt-get install -y --no-install-recommends ripgrep
- uses: actions/setup-python@v5.6.0
with:
python-version: ${{ matrix.python-version }}
Expand Down
7 changes: 7 additions & 0 deletions local/scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"

# A missing rg exits 127, which `if rg` treats like "no match", silently
# skipping every scan below (issue #1044). Fail loudly instead.
command -v rg >/dev/null 2>&1 || {
echo "ripgrep (rg) is required; the forbidden-content scans cannot run." >&2
exit 1
}

echo "[1/6] Checking forbidden public content"
if rg --hidden -n \
-e 'Tencent/multi-agents-dev-workflow-open-source' \
Expand Down