From 7f3328a7fe92c9f2d563d7cc4a7bc2a04805dc67 Mon Sep 17 00:00:00 2001 From: Joey King Date: Wed, 25 Feb 2026 03:42:19 +0000 Subject: [PATCH] fix: replace actions/setup-python with direct apt-get to prevent container leak --- .forgejo/workflows/regenerate-index.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/regenerate-index.yml b/.forgejo/workflows/regenerate-index.yml index 41ad4a4..c988f40 100644 --- a/.forgejo/workflows/regenerate-index.yml +++ b/.forgejo/workflows/regenerate-index.yml @@ -19,17 +19,15 @@ jobs: fetch-depth: 2 - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' + run: | + apt-get update -qq && apt-get install -y -qq python3 > /dev/null + ln -sf /usr/bin/python3 /usr/bin/python - name: Check if markdown files changed id: check_changes run: | - # Get list of changed files CHANGED_FILES=$(git diff --name-only HEAD^ HEAD) - # Check if any .md files changed (excluding .docs-index.json) if echo "$CHANGED_FILES" | grep -q '\.md$'; then echo "md_changed=true" >> $GITHUB_OUTPUT else