Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

argo-cd-action

> DevOps
Open source

GitHub action for executing Argo CD

99 stars0 likes0 views
WebsiteGitHub

About

GitHub action for executing Argo CD

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 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptargo-cdargocdgithub-actiongitops

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
CategoryDevOps
PricingOpen source

> Related tools

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