Some checks are pending
Go Benchmark / Performance Regression Check (push) Waiting to run
Cerberus Integration / Cerberus Security Stack Integration (push) Waiting to run
Upload Coverage to Codecov / Backend Codecov Upload (push) Waiting to run
Upload Coverage to Codecov / Frontend Codecov Upload (push) Waiting to run
CodeQL - Analyze / CodeQL analysis (go) (push) Waiting to run
CodeQL - Analyze / CodeQL analysis (javascript-typescript) (push) Waiting to run
CrowdSec Integration / CrowdSec Bouncer Integration (push) Waiting to run
Docker Build, Publish & Test / build-and-push (push) Waiting to run
Docker Build, Publish & Test / Security Scan PR Image (push) Blocked by required conditions
Quality Checks / Auth Route Protection Contract (push) Waiting to run
Quality Checks / Codecov Trigger/Comment Parity Guard (push) Waiting to run
Quality Checks / Backend (Go) (push) Waiting to run
Quality Checks / Frontend (React) (push) Waiting to run
Rate Limit integration / Rate Limiting Integration (push) Waiting to run
Security Scan (PR) / Trivy Binary Scan (push) Waiting to run
Supply Chain Verification (PR) / Verify Supply Chain (push) Waiting to run
WAF integration / Coraza WAF Integration (push) Waiting to run
15 lines
636 B
Bash
Executable File
15 lines
636 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
staged=$(git diff --cached --name-only | tr '\r' '\n' || true)
|
|
if [ -n "${staged}" ]; then
|
|
# Exclude the pre-commit-hooks directory and this script itself
|
|
filtered=$(echo "$staged" | grep -v '^scripts/pre-commit-hooks/' | grep -v '^data/backups/' || true)
|
|
if echo "$filtered" | grep -q "codeql-db"; then
|
|
echo "Error: Attempting to commit CodeQL database artifacts (codeql-db)." >&2
|
|
echo "These should not be committed. Remove them or add to .gitignore and try again." >&2
|
|
echo "Tip: Use 'scripts/repo_health_check.sh' to validate repository health." >&2
|
|
exit 1
|
|
fi
|
|
fi
|
|
exit 0
|