Linux Setup for Local Code Scanning
Last updated
Was this helpful?
Table of contents:
The Aikido Security Local Scanner is a tool that enables you to perform Aikido Security scans within your environment, ensuring your code never leaves your premises. The scans take place locally, and the results are then uploaded to the Aikido Security platform. This setup allows you to scan any repos locally own your own machine.
We currently support the x86_64 and ARM64 operating system architecture.
The scanner creates a temporary local folder (default .aikidotmp) to perform certain actions:
Copy certain lockfiles to run efficient scanning.
Write the results of the scanners.
This folder is cleaned up after the scanning is finished.
In addition, some files are copied to the temporary operating directory. Ensure that enough space is available; we recommend a minimum of 10GB.
Go to the Local Scanner setup page
Generate an authentication token and copy. Note that you will only be able to view this token once.
Add this token as argument --apikey when running the Local Scanner in your project .
Download the local scanner binary from the Aikido UI.
Now all that is left to run the scanner on the directory you want to scan.
By default all scanners will be executed, if you'd like to run only a selection of scanners, you can do so by supplying the scanner names --scanners option. More information on CLI options can be found here.
Alternatively, you can use our Docker image from Docker Hub or AWS Elastic Container Registry to scan your repository. Ensure that you have Docker installed before proceeding. First navigate into the directory you want to scan and run a scan using a command like:
After your first scan is done, you can go to the Aikido Feed to check out your results. A repository with the name you specified will have been created, containing all results from the scanning.
Last updated
Was this helpful?
Was this helpful?
./aikido-local-scanner scan path_to_my_repository --apikey AIK_CI_xxx --repositoryname DemoApp --branchname maindocker run --rm -v "$(pwd):/my-app" aikidosecurity/local-scanner scan /my-app --apikey AIK_CI_xxx --repositoryname RepoName --branchname main