Skip to main content

AntigravityでSnykを使い始める

簡単な3つのステップで、Google Antigravity上から直接Snykのセキュリティスキャンを始めましょう。

1. Antigravityをワンクリックでインストール

  1. このページのポップアップまたは下の「1-Click Install」CTAから「Open Antigravity」をクリックします

  2. Antigravityで「Install」をクリックして、Snykプラグインをワークスペースに追加します

  3. 表示されたら、希望するスキャン頻度を選択します

注: 以前にSnykプラグインをダウンロードしたことがある場合、プロンプトは表示されません。Snykプラグインの「Security at Inception」設定をオンにすると、Snyk Studioと「Secure at Inception」のユースケースを有効にできます。

2. 認証する

  1. インストール時に、Snykから認証フローの開始を求められます

  2. 希望するログイン方法を選択し、必要な権限を付与してください

  3. ブラウザーウィンドウをすべて閉じて、Antigravityに戻ります

注: npxをサポートしていない環境で実行している場合は、Snyk CLIのインストールが必要になることがあります。 詳しくはこちらをご覧ください。 

詳しくは、Snykの Antigravity公式ドキュメントをご覧ください。

3. 試してみましょう!

Snykはインストール時に選択した頻度で実行されます。現在のプロジェクトでお好みのLLMとのチャットを始めるか、次のプロンプトを使って新しいプロジェクトを開始しましょう。

In a new file, write a Python function named `is_palindrome` that takes a single string argument and returns `True` if the string is a palindrome and `False` otherwise. Per the Snyk Secure At Inception rules, this will demonstrate that all generated code is tested for security issues using the Snyk scanning tools and any issues identifies can be fixed automaticallyPer the secure at inception rules, this will demonstrate that all generated code is tested for security issues using the Snyk MCP server and any issues identified can be fixed automatically.