GitGuardian / ggshield

Find and fix 400+ types of hardcoded secrets and 70+ types of infrastructure-as-code misconfigurations.
https://gitguardian.com
MIT License
1.59k stars 139 forks source link

Add a script to build a standalone binary #833

Closed agateau-gg closed 5 months ago

agateau-gg commented 6 months ago

This PR adds the scripts/build-standalone-exe script. This script builds a standalone ggshield executable using Pyinstaller.

It builds binaries for:

The binaries can be downloaded from the bottom of the summary page of the action run (after all the deprecation warnings 😅)

Note: Building for Mac M1 required bumping the default Python version to 3.10 because 3.9 was not available on the GitHub M1 runner.

Best reviewed commit-by-commit.

codecov-commenter commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (21de1b0) 91.89% compared to head (6938447) 91.81%. Report is 5 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #833 +/- ## ========================================== - Coverage 91.89% 91.81% -0.08% ========================================== Files 168 167 -1 Lines 6984 6978 -6 ========================================== - Hits 6418 6407 -11 - Misses 566 571 +5 ``` | [Flag](https://app.codecov.io/gh/GitGuardian/ggshield/pull/833/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=GitGuardian) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/GitGuardian/ggshield/pull/833/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=GitGuardian) | `91.81% <100.00%> (-0.08%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=GitGuardian#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.