Toolchain priority in GitHub App scans
Endor Labs GitHub App continuously monitors your projects for security and operational risks. The app monitors all the projects included in your GitHub workspace and scans run once every 24 hours. For performing scans, the GitHub App checks the toolchain specifications in the following order:- Scan workflow, if present.
- Toolchain configuration specified through endorctl API.
- Toolchain configuration specified in
scanprofile.yamlfile. - Enable auto detection to automatically detect the toolchains from your manifest files.
- Uses the system defaults.
Configure build tools for endorctl scans
After installing and initializing endorctl, run the endorctl scan with the--install-build-tools flag to automatically download and install any missing toolchains in an isolated sandbox to properly execute language-specific scans and dependency resolution.
-
For the first time, run the endorctl scan to create a project with Endor Labs.
-
Run the following command to automatically download and install build tools as part of your scan.
- The system checks for the required toolchain specifications in the following order before installing them in the sandbox.
System default toolchain versions
If you do not provide a tool profile, the default toolchains are installed in the sandbox while performing the endorctl scan with theinstall-build-tools flag. See Toolchain support matrix for details on default versions.
Toolchain support matrix
The following table outlines the toolchain profile support details across different languages and platforms..NET 5 and earlier versions are not supported for auto detection or manual configuration.
If a project uses Java 8, Endor Labs installs both Java 8 and Java 17.0.11. It builds the project with Java 8 and scans it with Java 17.
Configure automated scan parameters
Automated scan parameters are endorctl parameters and environment variables that you define in a scan profile. They apply to projects linked to that profile and help customize scan behavior during cloud scans. You can define the following parameters in your scan profile:- included_paths: Enable to specify a list of paths to include in the scan.
-
excluded_paths: Enable to specify a list of paths to exclude from the scan. Excluded paths do not apply to secrets scanning. Secrets detection always scans the full repository. To filter or suppress secret findings, use policies or a
.gitleaksignorefile instead. - languages: Enable to specify a list of languages to scan. If empty, default values are used.
- call_graph_languages: Enable to specify a list of languages to use for generating call graphs. If empty, default values are used.
-
additional_environment_variables: Enable to specify additional environment variables to set during the scan. Only the environment variables starting with
ENDOR_are passed to the scan, all others are ignored. See Global flags and environment variables for a complete list of available environment variables. - enable_automated_pr_scans: Enables automatic scanning of pull request changes.
- enable_pr_comments: Enables adding scan results as comments in pull requests.
- enable_sast_scan: Enables SAST during the scanning process.
- disable_code_snippet_storage: Disables the storage of code snippets.
- bazel_configuration: Enable to specify configuration settings for Bazel scans. See Bazel flags for more details.
- bazel_show_internal_targets: Enable to include internal build targets in the dependency analysis.
- bazel_workspace_path: Enable to specify the path to the Bazel workspace.
- bazel_include_targets: Enable to specify Bazel targets to include in the scan.
- bazel_exclude_target: Enable to specify Bazel targets to exclude from the scan.