- Created `qa-test-output-after-fix.txt` and `qa-test-output.txt` to log results of certificate page authentication tests. - Added `build.sh` for deterministic backend builds in CI, utilizing `go list` for efficiency. - Introduced `codeql_scan.sh` for CodeQL database creation and analysis for Go and JavaScript/TypeScript. - Implemented `dockerfile_check.sh` to validate Dockerfiles for base image and package manager mismatches. - Added `sourcery_precommit_wrapper.sh` to facilitate Sourcery CLI usage in pre-commit hooks.
21 lines
431 B
Bash
Executable File
21 lines
431 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
# Prevent committing any files under data/backups/ accidentally
|
|
staged_files=$(git diff --cached --name-only || true)
|
|
if [ -z "$staged_files" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
for f in $staged_files; do
|
|
case "$f" in
|
|
data/backups/*)
|
|
echo "Error: Committing files under data/backups/ is blocked. Remove them from the commit and re-run." >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
done
|
|
|
|
exit 0
|