ggshield ValueError: invalid literal for int() with base 10: '' on macOS

After installing ggshield 1.51.0 via Homebrew on macOS, every run crashes at startup with ValueError: invalid literal for int() with base 10: ''. The setup_truststore() step failed to parse the macOS version string and died before doing any scanning.

Fixed in ggshield 1.52.1, where setup_truststore() falls back to the bundled certifi certificates when the macOS version cannot be parsed instead of crashing. Run brew upgrade ggshield to get it. The reporter confirmed the fix works.

Source: https://github.com/GitGuardian/ggshield/issues/1265

Source: https://github.com/GitGuardian/ggshield/issues/1265