trufflehog/pkg/sources/git
Mike Vanbuskirk 53f060a08e
Add disk buffer tempfile cleanup (#2130)
* add tempfile creation

- break PID retrieval into sep. function

* add tmpfile cleanup func

* add file cleanup to main cleanup func

* refactor file logic to only return name string

* add temp buffer naming to gcs

* add temp buffer naming to s3

* add temp buffer naming to filesystem

* add temp buffer naming to git

* consolidate cleanup functions

- have single function handle both files and dirs
- remove interface(not needed with a single func implementation)
- change calls to `New(...)` to reflect config implementation
- simplify automation in main.go
- update disk-buffer-reader dependency

* integrate changes from pr #2133

* merge main

* checkout from main to revert conflict issues

* re-add buffer logic to git

* interface no longer needed

* move string format to global const

---------

Co-authored-by: Ahrav Dutta <ahrav.dutta@trufflesec.com>
2023-12-11 18:31:50 -05:00
..
cmd_check.go [chore] - Compile regex once (#2176) 2023-12-07 07:26:27 -08:00
git.go Add disk buffer tempfile cleanup (#2130) 2023-12-11 18:31:50 -05:00
git_test.go Refactor git source to support scanning units (#2083) 2023-11-01 09:52:58 -07:00
scan_options.go initial support for bare repositories (#1499) 2023-08-03 11:23:41 -05:00
unit.go Implement SourceUnitUnmarshaller for all sources (#1416) 2023-06-23 11:15:51 -05:00