Installation
Prerequisites
Before installing Gatecheck, make sure your system meets the following requirements:
- Operating System: Windows, macOS, or Linux.
- Go: Version 1.26.0 or newer (only required if you plan to build the application from source).
Installation Options
Gatecheck can be installed either by downloading the pre-compiled binary for your operating system or by compiling the source code.
Option 1: Installing from Binary
-
Download the Binary: Visit the Gatecheck GitHub releases page at
https://github.com/gatecheckdev/gatecheck/releasesand download the latest version for your operating system. -
Unpack the Binary (if necessary): For Windows and Linux, you may need to unpack the
.zipor.tar.gzfile. -
Move the Binary to a Bin Directory:
- Windows: Move
gatecheck.exeto a directory within your PATH, such asC:\Windows. - macOS/Linux: Move
gatecheckto a location in your PATH, such as/usr/local/bin. You can use the commandmv gatecheck /usr/local/binin the terminal.
- Windows: Move
-
Verify Installation: Open a terminal or command prompt and type
gatecheck versionorgatecheck --versionto ensure the application is installed correctly.
Option 2: Building from Source
-
Clone the Repository: Clone the Gatecheck repository to your local machine using Git:
git clone https://github.com/gatecheckdev/gatecheck -
Navigate to the Repository Directory:
cd gatecheck -
Install Task: Ensure you have Task installed.
-
Build and Install: Run:
task build task installtask buildwrites./bin/gatecheck.task installcopies that binary toINSTALL_DIR, which defaults to/usr/local/bin, and asks before it copies.To build without Task:
go build -ldflags="-X 'main.cliVersion=$(git describe --tags)' -X 'main.gitCommit=$(git rev-parse HEAD)' -X 'main.buildDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)' -X 'main.gitDescription=$(git log -1 --pretty=%B)'" -o ./bin/gatecheck ./cmd/gatecheck -
Verify Installation: Check the application version to confirm successful installation:
gatecheck version
Post-Installation Steps
After installing Gatecheck, you can begin using it by typing gatecheck followed by the necessary commands and
options in your terminal or command prompt. For a list of available commands and their descriptions, use:
gatecheck --help
Install scanners
After gatecheck itself is installed, gatecheck bootstrap downloads pinned releases of Grype, Syft, Gitleaks, Trivy, and osv-scanner, and installs semgrep’s experimental native CLI as osemgrep. The files live under the gatecheck data directory (GATECHECK_HOME, or the platform default described in Bootstrap).
gatecheck bootstrap
gatecheck grype --help
Troubleshooting
If you encounter any issues during the installation process, ensure that you have the correct permissions to install software on your system and that your Go environment is properly configured. For further assistance, please visit the Gatecheck GitHub issues page or contact support.
For more information on using Gatecheck, refer to the user documentation or the GitHub repository for examples and advanced usage.