Skip to main content

GitHub Actions CLI

A CLI tool for keeping GitHub Actions workflow files up to date. It works with both local repository clones and remote GitHub repositories.

Installation

As a GitHub CLI extension

gh extension install dsoftwareinc/gh-actions-update

This installs a precompiled binary (no Python needed) and adds the gh actions-update command. It takes the same options and commands as github-actions-cli, and reuses your gh auth login credentials, so no separate token is needed:

gh actions-update
gh actions-update update-actions --update

Upgrade it with gh extension upgrade actions-update.

As a Python package

pip install github-actions-cli

Or run without installing via uvx:

uvx github-actions-cli

Quick start

Run inside any local GitHub repository clone to see which actions have updates available:

github-actions-cli
GitHub Actions CLI, scanning repo in /path/to/repo
.github/workflows/test.yml (Test):
    actions/checkout          v2 ==> v3
    actions/setup-python      v3 ==> v4
    release-drafter/release-drafter  v5
.github/workflows/publish.yml (Publish):
    pypa/gh-action-pypi-publish  v1
    actions/checkout          v2 ==> v3

Actions with an ==> have a newer version available. To apply the updates, name the update-actions command and pass --update:

github-actions-cli update-actions --update

GitHub token

A GitHub token is required to query the GitHub API for the latest action versions. The token is taken from, in order: --github-token, the GITHUB_TOKEN or GH_TOKEN environment variable, and finally gh auth token if the GitHub CLI is installed and logged in.

export GITHUB_TOKEN=ghp_...
github-actions-cli

Writing changes to a remote repository also requires the token to have commit permissions on that repository.

Commands

update-actions (default)

Lists actions that have updates available. Pass --update (-u) to apply the changes.

This is the command that runs when you invoke github-actions-cli with no subcommand, but its options belong to the subcommand: to pass --update you have to spell out update-actions.

# Check for updates in the current directory
github-actions-cli

# Apply updates to local workflow files
github-actions-cli update-actions --update

# Check and update a remote repository
github-actions-cli --repo cunla/fakeredis update-actions --update

# Use a custom commit message when updating a remote repository
github-actions-cli --repo cunla/fakeredis update-actions --update -commit-msg "chore: update actions"
Usage: github-actions-cli update-actions [OPTIONS]

Options:
  -u, --update      Apply updates to workflow files. For remote repos this
                    creates a commit; for local repos it writes the files.
  -commit-msg TEXT  Commit message (remote repos only).
                    [default: chore(ci):update actions]
  --help            Show this message and exit.

list-workflows

Lists all workflow files found in a repository.

github-actions-cli list-workflows
github-actions-cli --repo cunla/fakeredis list-workflows
.github/workflows/test.yml - Test
.github/workflows/publish.yml - Publish

list-actions

Lists every action referenced in a specific workflow file.

github-actions-cli list-actions .github/workflows/test.yml
github-actions-cli --repo cunla/fakeredis list-actions .github/workflows/test.yml
actions/checkout@v3
actions/setup-python@v4
release-drafter/release-drafter@v5

analyze-orgs

Scans all GitHub organizations the authenticated user belongs to and prints a CSV summary of their repositories.

github-actions-cli analyze-orgs
github-actions-cli analyze-orgs --exclude my-org --exclude another-org

Global options

Usage: github-actions-cli [OPTIONS] [COMMAND] [ARGS]...

Options:
  --repo TEXT           Repository to scan. Accepts a local path or
                        owner/repo format.  [default: .]
  --github-token TEXT   GitHub token. Falls back to the GITHUB_TOKEN
                        environment variable.
  -m, --major-only      Only flag updates across major versions (e.g. v1 →
                        v2). Minor and patch bumps are ignored.
  -v, --verbose         Increase output verbosity. Pass twice for debug output.
  --help                Show this message and exit.

Metadata

Release files for github-actions-cli 1.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for github-actions-cli 1.2.5
File Size Uploaded Provenance Actions
github_actions_cli-1.2.5.tar.gz 9.7 kB With provenance Details for github_actions_cli-1.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for github-actions-cli 1.2.5
File Interpreter ABI Platform Actions
github_actions_cli-1.2.5-py3-none-any.whl Python 3 none any Details for github_actions_cli-1.2.5-py3-none-any.whl

Total release size: 20.9 kB

Release files / github_actions_cli-1.2.5.tar.gz

Download URL github_actions_cli-1.2.5.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f19512a838227fbb793ec3afd4fb2b0bb0fffd8bc787b77f94f8db249f93d001
BLAKE2b-256 checksum
How to use checksums
3cd5dcf0e167e2fa3d960b3505c9250fc2bcc89ae09f85675654fb4897f2ac22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / github_actions_cli-1.2.5-py3-none-any.whl

Download URL github_actions_cli-1.2.5-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db746472f8db0785f8e654a0314aed5f23a23213a03ef5fc4f0439d387924b39
BLAKE2b-256 checksum
How to use checksums
6e3c40f47afe9f67c0b6436bdc808c1e97a840df4ce7a10bf58e2220262bf9f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for github-actions-cli 1.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for github_actions_cli-1.2.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page