Ephemeres Code-Scanning
Um einen einmaligen, eigenständigen SAST- und Abhängigkeitsscan auszuführen, der die Ergebnisse in eine Datei schreibt, führen Sie einen Befehl wie den folgenden aus:
./aikido-local-scan ephemeral-scan path_to_your_repo --apikey AIK_CI_xxxDadurch werden die Ergebnisse in eine Datei aikido-scan-results.json geschrieben.
Alle CLI-Optionen:
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
#Häufige Anwendungsfälle
Nachfolgend finden Sie einige Beispielkonfigurationen für häufige Anwendungsfälle.
Ich möchte nur das Scannen von Abhängigkeiten ausführen
aikido-local-scanner ephemeral-scan ./
--apikey AIK_CI_xxx
--scan-types dependenciesIch möchte nur das Code-Scanning ausführen
aikido-local-scanner ephemeral-scan ./
--apikey AIK_CI_xxx
--scan-types codeIch möchte nur das Secrets-Scanning ausführen
aikido-local-scanner ephemeral-scan ./
--apikey AIK_CI_xxx
--scan-types secrets