- 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.
949 B
949 B
Cleanup Temporary Files Plan
Problem
The pre-commit hook check-added-large-files failed because backend/temp_index.json and hub_index.json are staged. These are temporary files generated during CrowdSec Hub integration and should not be committed to the repository.
Plan
1. Remove Files from Staging and Filesystem
- Unstage
backend/temp_index.jsonandhub_index.jsonusinggit restore --staged. - Remove these files from the filesystem using
rm.
2. Update .gitignore
- Add
hub_index.jsonto.gitignore. - Add
temp_index.jsonto.gitignore(orbackend/temp_index.json). - Add
backend/temp_index.jsonspecifically iftemp_index.jsonis too broad, buttemp_index.jsonseems safe as a general temp file name.
3. Verification
- Run
git statusto ensure files are ignored and not staged. - Run pre-commit hooks again to verify they pass.
Execution
I will proceed with these steps immediately.