From d68920b4ce3a9edbd6c8874cd8ca7f28a8e88179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=98=D0=9D?= Date: Thu, 28 May 2026 14:18:40 +0300 Subject: [PATCH] =?UTF-8?q?fix(ci):=20trufflehog=20=D0=B1=D0=B5=D0=B7=20do?= =?UTF-8?q?cker=20+=20=D0=BB=D0=B8=D1=88=D0=BD=D1=8F=D1=8F=20)}=20=D0=B2?= =?UTF-8?q?=20TerrainGenPanel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 12 +++++++----- src/editor/TerrainGenPanel.jsx | 1 - 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 1a1d9a5..90ad3e6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -50,14 +50,16 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Install trufflehog + run: | + curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh \ + | sh -s -- -b /usr/local/bin - name: Run trufflehog run: | - docker run --rm -v "$(pwd):/repo" \ - trufflesecurity/trufflehog:latest \ - git file:///repo \ + trufflehog git "file://$(pwd)" \ --only-verified --fail \ - --exclude-paths /repo/.trufflehog-ignore 2>&1 | tee scan.log - if grep -q "Reason:" scan.log; then + --exclude-paths .trufflehog-ignore 2>&1 | tee scan.log || EXIT=$? + if [ -n "$EXIT" ] && [ "$EXIT" -ne 0 ]; then echo "::error::Найдены секреты в коммитах! См. лог выше." exit 1 fi diff --git a/src/editor/TerrainGenPanel.jsx b/src/editor/TerrainGenPanel.jsx index d6fe0f9..57f8ab6 100644 --- a/src/editor/TerrainGenPanel.jsx +++ b/src/editor/TerrainGenPanel.jsx @@ -938,7 +938,6 @@ export default function TerrainGenPanel({ onApply, onApplyRoblox, onClearRoblox, )} - )} {/* /scrollArea */}