百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

argo-cd-action

> DevOps
开源

执行 Argo CD 的 GitHub 操作

99 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

执行 Argo CD 的 GitHub 操作

argo-cd-action

GitHub action for installing and executing the Argo CD CLI.

Usage

See the ArgoCD CLI documentation for the full list of available commands and options.

Inputs

Name Description Required Default
command Command passed to the ArgoCD CLI No
options Options passed to the ArgoCD CLI command No
version Version of ArgoCD CLI to install No 3.3.2
download-url Custom URL to download the ArgoCD CLI binary from (e.g., from a self-hosted server) No

Outputs

Name Description
output Stdout from the ArgoCD CLI command execution

Basic

yaml
- uses: clowdhaus/argo-cd-action/@main
  with:
    command: version
    options: --client

With GitHub API authentication

If you run workflows frequently, you may hit GitHub's API rate limit when downloading the CLI from ArgoCD releases. Add GITHUB_TOKEN to authenticate and use a higher rate limit.

yaml
- uses: clowdhaus/argo-cd-action/@main
  env:
    # Only required for first step in job where the CLI is downloaded
    # Subsequent steps in the same job will use the cached binary
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
    command: version
    options: --client

With a self-hosted ArgoCD server

Use the download-url input to download the CLI directly from your ArgoCD server instead of GitHub releases. This keeps your CLI version in sync with your server and avoids GitHub API rate limits.

yaml
- uses: clowdhaus/argo-cd-action/@main
  with:
    download-url: https://argocd.example.com/download/argocd-linux-amd64
    command: version
    options: --client

Authenticate and deploy

yaml
- name: Install ArgoCD CLI
  uses: clowdhaus/argo-cd-action/@main
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy application
  uses: clowdhaus/argo-cd-action/@main
  with:
    command: app sync my-app
    options: >-
      --auth-token ${{ secrets.ARGOCD_AUTH_TOKEN }}
      --server ${{ secrets.ARGOCD_SERVER }}
      --grpc-web

Capture command output

The action exposes the CLI stdout as a step output, which can be referenced in subsequent steps.

yaml
- name: List applications
  id: argocd
  uses: clowdhaus/argo-cd-action/@main
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
    command: app list
    options: >-
      --auth-token ${{ secrets.ARGOCD_AUTH_TOKEN }}
      --server ${{ secrets.ARGOCD_SERVER }}
      --grpc-web
      -o name

- name: Use output
  run: echo "${{ steps.argocd.outputs.output }}"

Set a specific version

yaml
- uses: clowdhaus/argo-cd-action/@main
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
    version: 3.1.5
    command: version
    options: --client

Install only (no command)

If you omit command, the action only installs the ArgoCD CLI and adds it to PATH for use in subsequent run steps.

yaml
- uses: clowdhaus/argo-cd-action/@main
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: argocd version --client

Security

  • Downloaded binaries from GitHub releases are verified against SHA256 checksums (available for ArgoCD v2.7.0+)
  • Sensitive environment variables (GITHUB_TOKEN, ACTIONS_RUNTIME_TOKEN, ACTIONS_ID_TOKEN_REQUEST_TOKEN, ACTIONS_ID_TOKEN_REQUEST_URL) are automatically filtered when executing ArgoCD CLI commands
  • When using download-url, checksum verification is skipped as the binary comes from your own infrastructure
  • GitHub Actions in CI workflows are pinned by full-length commit SHA for supply chain integrity

Getting Started

The following instructions will help you get setup for development and testing purposes.

Prerequisites

npm

npm is used to handle dependencies and executing scripts on the codebase.

Install the project dependencies by running the following command from within the project root directory:

bash
  $ npm install

Contributing

Please read CODE_OF_CONDUCT.md for details on our code of conduct and the process for submitting pull requests.

Changelog

Please see the CHANGELOG.md for details on individual releases.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptargo-cdargocdgithub-actiongitops

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理