From 66112980aad31382e74a6ce02f3fe4cb318a0576 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 6 Mar 2026 14:41:20 -0500 Subject: [PATCH] CI: keep full secret scans on main --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a77dbeab49d..60f0e9b6cc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -310,11 +310,12 @@ jobs: set -euo pipefail if [ "${{ github.event_name }}" = "push" ]; then - BASE="${{ github.event.before }}" - else - BASE="${{ github.event.pull_request.base.sha }}" + echo "Running full detect-secrets scan on push." + pre-commit run --all-files detect-secrets + exit 0 fi + BASE="${{ github.event.pull_request.base.sha }}" changed_files=() if git rev-parse --verify "$BASE^{commit}" >/dev/null 2>&1; then while IFS= read -r path; do