mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
CI: keep full secret scans on main
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -310,11 +310,12 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if [ "${{ github.event_name }}" = "push" ]; then
|
if [ "${{ github.event_name }}" = "push" ]; then
|
||||||
BASE="${{ github.event.before }}"
|
echo "Running full detect-secrets scan on push."
|
||||||
else
|
pre-commit run --all-files detect-secrets
|
||||||
BASE="${{ github.event.pull_request.base.sha }}"
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
BASE="${{ github.event.pull_request.base.sha }}"
|
||||||
changed_files=()
|
changed_files=()
|
||||||
if git rev-parse --verify "$BASE^{commit}" >/dev/null 2>&1; then
|
if git rev-parse --verify "$BASE^{commit}" >/dev/null 2>&1; then
|
||||||
while IFS= read -r path; do
|
while IFS= read -r path; do
|
||||||
|
|||||||
Reference in New Issue
Block a user