Skip to content

Repository files navigation

install-cli-action

GitHub Action that downloads and installs the Proton Pass CLI into the workflow PATH.

Usage

Install the latest version

- name: Install Proton Pass CLIuses: protonpass/install-cli-action@v1

Install a specific version

- name: Install Proton Pass CLIuses: protonpass/install-cli-action@v1with:
version: '2.1.4'

Pin to a specific version and provide the hash yourself

- name: Install Proton Pass CLIuses: protonpass/install-cli-action@v1with:
version: '2.1.4'hash: '60d54456726378d80917de0e05d2e102697ee043b7e420a34d55c8437ced89f2'

Target a specific platform

- name: Install Proton Pass CLIuses: protonpass/install-cli-action@v1with:
platform: 'linux-aarch64'

Install and authenticate in one step

If PROTON_PASS_PERSONAL_ACCESS_TOKEN is set, the action also logs in after installing the binary. This is useful when subsequent steps call pass-cli directly rather than going through pass-cli-load-secret-action.

- name: Install Proton Pass CLIuses: protonpass/install-cli-action@v1env:
PROTON_PASS_PERSONAL_ACCESS_TOKEN: ${{ secrets.PROTON_PAT }}

If PROTON_PASS_PERSONAL_ACCESS_TOKEN is not set the login step is skipped and the action only installs the binary. If a valid session is already present (e.g. from a prior step in the same job), login is also skipped.

Inputs

InputRequiredDefaultDescription
versionNolatestVersion of pass-cli to install. When latest the action resolves the newest release from the GitHub API.
hashNoExpected SHA256 hash of the downloaded binary. When omitted the hash is fetched from the official .sha256 release file. Hash verification always runs regardless of how the hash is provided.
platformNoauto-detectTarget platform. Auto-detected from the runner when omitted. Accepted values: linux-aarch64, linux-x86_64, macos-aarch64, macos-x86_64, windows-x86_64.

Environment variables

VariableRequiredDescription
PROTON_PASS_PERSONAL_ACCESS_TOKENNoWhen set, the action logs in to Proton Pass after installing the binary. Masked in all logs.

Supported platforms

PlatformRunner
linux-x86_64ubuntu-*
linux-aarch64ubuntu-* (arm)
macos-x86_64macos-13 and earlier
macos-aarch64macos-14 and later
windows-x86_64windows-*

Security

SHA256 hash verification is always performed, whether the hash is supplied as an input or fetched from the official release. The action fails immediately if the downloaded binary does not match the expected hash.

About

Install the Proton Pass CLI in your GitHub workflows

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages