Skip to content

Configuring Agents

Lineai Change Requests automatically find scans of the changes from a pull request in one of two ways. The Lineai server will locate the scan data based on the git hash matching the hash provided by the webhook, or it will locate the scanned artifact data in a specially named Scan Space correlating to the pull request.

The Lineai server will look for scanned artifact data in a Scan Space with a pattern matching REPOSITORY_URL|BRANCH_NAME. To configure an agent to scan into a named Scan Space, see:

As an example, if your pull request originates from the following repository https://github.com/LineaiIncEngineering/blog_references in a branch named feature/CAPE-1983 you would pass the following Scan Space to the agent when scanning: https://github.com/LineaiIncEngineering/blog_references|feature/CAPE-1983.

Agents automatically locate and collect git information when scanning. The Lineai server uses this information to match the scanned artifacts with the appropriate pull request by utilizing the git hash. If git information is not available to the agents, you can manually specify a uniquely named Scan Space for the agent to store the artifact scans, which Change Requests can utilize for locating the appropriate data.