# ローカルコードスキャン

ローカルコードスキャンを使用すると、Aikido にコードを送信することなく、自分のマシン上でソースコードを直接分析できます。開発中に変更をテストしたい場合、隔離された環境で作業する場合、または機密性の高いリポジトリを完全にローカルに保ちたい場合に便利です。

{% hint style="success" %}
ほとんどのワークフローでは、引き続き [標準の Aikido 連携](https://help.aikido.dev/docs/docs-ja/code-scanning/connect-your-source-code) の使用を推奨します。こちらの方がより高速な結果と、より広いカバレッジが得られるためです。
{% endhint %}

始める前に、ローカルスキャンをサポートする Aikido アカウント/ワークスペースがあることを確認してください。に従ってください [ローカルスキャンのアカウント作成](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/account-creation-for-local-scanning-on-aikido).

Aikido にリポジトリの zip を送るには、次の手順に従って [リポジトリを zip としてアップロード](https://help.aikido.dev/docs/docs-ja/code-scanning/connect-your-source-code/upload-a-repository-as-a-zip)。そのアップロードによりアーカイブが Aikido に送信され、Aikido がそれを保存します。ローカルスキャンではコードはお使いのマシン上に保持されます。

代わりにコンテナイメージをスキャンしたい場合は、 [コンテナイメージスキャンのドキュメント](https://help.aikido.dev/docs/docs-ja/container-image-scanning/local-image-scanning).

## General

{% content-ref url="account-creation-for-local-scanning-on-aikido.md" %}
[ローカルスキャンのアカウント作成](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/account-creation-for-local-scanning-on-aikido)
{% endcontent-ref %}

{% content-ref url="pr-gating-for-code-using-local-scanner.md" %}
[ローカルスキャナーを使ったコードのPRゲーティング](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/pr-gating-for-code-using-local-scanner)
{% endcontent-ref %}

{% content-ref url="release-gating-for-code-using-local-scanner.md" %}
[ローカルスキャナーを使ったコードのリリースゲーティング](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/release-gating-for-code-using-local-scanner)
{% endcontent-ref %}

{% content-ref url="performing-nightly-scans-using-the-aikido-local-scanner.md" %}
[ローカルスキャナーを使った夜間スキャンの実行](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/performing-nightly-scans-using-the-aikido-local-scanner)
{% endcontent-ref %}

{% content-ref url="cli-options-for-local-scanner.md" %}
[ローカルコードスキャンのCLIオプション](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/cli-options-for-local-scanner)
{% endcontent-ref %}

## CI/CD 連携

{% content-ref url="azure-devops-server-setup-for-local-code-scanning.md" %}
[ローカルコードスキャンのためのAzure DevOps Serverセットアップ](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/azure-devops-server-setup-for-local-code-scanning)
{% endcontent-ref %}

{% content-ref url="bitbucket-pipeline-setup-for-local-code-scanning.md" %}
[ローカルコードスキャンのためのBitbucketパイプラインセットアップ](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/bitbucket-pipeline-setup-for-local-code-scanning)
{% endcontent-ref %}

{% content-ref url="bamboo-setup-for-local-code-scanning.md" %}
[ローカルコードスキャンのためのBambooセットアップ](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/bamboo-setup-for-local-code-scanning)
{% endcontent-ref %}

{% content-ref url="circleci-setup-for-local-code-scanning.md" %}
[ローカルコードスキャンのためのCircleCIセットアップ](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/circleci-setup-for-local-code-scanning)
{% endcontent-ref %}

{% content-ref url="github-action-setup-for-local-code-scanning.md" %}
[ローカルオンプレコードスキャンのためのGitHub Actionsセットアップ](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/github-action-setup-for-local-code-scanning)
{% endcontent-ref %}

{% content-ref url="gitlab-self-managed-setup-for-local-code-scanning.md" %}
[ローカルコードスキャンのためのGitLab Self-Managedセットアップ](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/gitlab-self-managed-setup-for-local-code-scanning)
{% endcontent-ref %}

{% content-ref url="jenkins-setup-for-local-code-scanning.md" %}
[ローカルコードスキャンのためのJenkinsセットアップ](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/jenkins-setup-for-local-code-scanning)
{% endcontent-ref %}

{% content-ref url="teamcity-pipeline-setup-for-local-code-scanning.md" %}
[ローカルコードスキャンのためのTeamCityパイプラインセットアップ](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/teamcity-pipeline-setup-for-local-code-scanning)
{% endcontent-ref %}

## オペレーティングシステム

{% content-ref url="linux-setup-for-local-code-scanning.md" %}
[ローカルコードスキャンのためのLinuxセットアップ](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/linux-setup-for-local-code-scanning)
{% endcontent-ref %}

{% content-ref url="mac-setup-for-local-code-scanning.md" %}
[ローカルコードスキャンのためのMacセットアップ](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/mac-setup-for-local-code-scanning)
{% endcontent-ref %}

{% content-ref url="windows-setup-for-local-code-scanning.md" %}
[ローカルコードスキャンのためのWindowsセットアップ](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/windows-setup-for-local-code-scanning)
{% endcontent-ref %}

## その他

{% content-ref url="local-scanning-in-existing-scm-integrated-workspaces.md" %}
[既存のSCM統合ワークスペースでのローカルスキャン](https://help.aikido.dev/docs/docs-ja/code-scanning/local-code-scanning/local-scanning-in-existing-scm-integrated-workspaces)
{% endcontent-ref %}
