ggshield
ggshield copied to clipboard
feat(scan): do not create ggshield cache when scan pre-receive
Issue #306
Like it is done for scan ci, we do not want to create cache when running scan pre-receive
Tested manually using the doc/pre-receive.sample script :
After committing a secret, run echo "HEAD <recent-commit-ID> <unused-arg>" | sh doc/pre-receive.sample
No cache file .cache_ggshield is created
Codecov Report
Merging #317 (19bcae2) into main (4e7a0d1) will increase coverage by
0.00%. The diff coverage is100.00%.
@@ Coverage Diff @@
## main #317 +/- ##
=======================================
Coverage 94.30% 94.31%
=======================================
Files 75 75
Lines 3022 3023 +1
=======================================
+ Hits 2850 2851 +1
Misses 172 172
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 94.31% <100.00%> (+<0.01%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| ggshield/cmd/secret/scan/ci.py | 100.00% <100.00%> (ø) |
|
| ggshield/cmd/secret/scan/prereceive.py | 94.44% <100.00%> (+0.06%) |
:arrow_up: |
| ggshield/core/cache.py | 90.32% <100.00%> (+0.15%) |
:arrow_up: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.