ggshield icon indicating copy to clipboard operation
ggshield copied to clipboard

feat(scan): do not create ggshield cache when scan pre-receive

Open guillaume-malle opened this issue 3 years ago • 0 comments

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

guillaume-malle avatar Aug 09 '22 14:08 guillaume-malle

Codecov Report

Merging #317 (19bcae2) into main (4e7a0d1) will increase coverage by 0.00%. The diff coverage is 100.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.

codecov-commenter avatar Aug 16 '22 08:08 codecov-commenter