豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.01 KB

File metadata and controls

34 lines (26 loc) · 1.01 KB

Extensions

Gemini CLI can be extended with additional functionality through extensions. These extensions are installed from source from their GitHub repositories.

For more information on creating and using extensions, see documentation.

Configuration

To use extensions in your GitHub workflow, provide a JSON array of GitHub repositories to the extensions input of the run-gemini-cli action.

Example

Here is an example of how to configure a workflow to install and use extensions:

jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - id: gemini
        uses: google-github-actions/run-gemini-cli@v0
        with:
          gemini_api_key: ${{ secrets.GEMINI_API_KEY }}
          prompt: '/security:analyze'
          extensions: |
            [
              "https://github.com/gemini-cli-extensions/security",
              "https://github.com/gemini-cli-extensions/code-review"
            ]