Varredura de Código Efêmera
Para executar uma análise única e independente de SAST e dependências que grava os resultados num ficheiro, execute um comando como:
./aikido-local-scan ephemeral-scan path_to_your_repo --apikey AIK_CI_xxxIsto irá gravar as descobertas num ficheiro aikido-scan-results.json.
Todas as opções da CLI:
Usage: aikido-local-scanner ephemeral-scan [options] <path>
Run a scan that outputs results to a JSON file. BETA: supports SAST, dependency and secrets scanning.
Arguments:
path The path you want to scan.
Options:
--apikey <apikey> Apikey to process scan results. (env: AIKIDO_API_KEY)
--repositoryname <repositoryname> Aikido repository name to validate the scan results against. (default: "")
--tmpdirectory <tmpdirectory> Temporary directory to use during scanning. (default: "./.aikidotmp-1795109381110")
--debug Add additional debug information to command output.
--exclude <exclude_path> Specify a file or folder path that should be excluded from the scan. This option may be specified multiple times. (default: [])
--no-snippets Use this mode to not share any code snippets with Aikido.
--result-output <output> JSON file to write issues to. (default: "./aikido-scan-results.json")
--fail-on <severity> Exit with a non-zero status code when the scan produces findings at or above the given severity. (choices: "low", "medium", "high", "critical")
--output-syft-json <output> JSON file to write the raw Syft SBOM to.
--scan-types [types...] Specify which types of scans should be executed. (choices: "code", "dependencies", "secrets", default: ["code","dependencies","secrets"])
--scan-timeout <timeout> Timeout in milliseconds for each scan (defaults to 900000ms).
--enable-proxy Uses HTTPS_PROXY environment variable to proxy requests
--ca-bundle <path> Path to a PEM file containing custom root CA(s) to trust when using --enable-proxy. (env: AIKIDO_CA_BUNDLE)
--include-dev-deps Enable scanning of development dependencies (e.g., devDependencies in package.json, etc.)
--disable-telemetry Disable all error reporting (telemetry) to Aikido. (env: AIKIDO_DISABLE_TELEMETRY)
-h, --help display help for command
#Casos de utilização comuns
Abaixo encontra alguns exemplos de configurações para casos de utilização comuns.
Quero executar apenas a análise de dependências
aikido-local-scanner ephemeral-scan ./
--apikey AIK_CI_xxx
--scan-types dependenciesQuero executar apenas a análise de código
aikido-local-scanner ephemeral-scan ./
--apikey AIK_CI_xxx
--scan-types codeQuero executar apenas a análise de segredos
aikido-local-scanner ephemeral-scan ./
--apikey AIK_CI_xxx
--scan-types secrets