Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.44 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.44 KB

Install the Infisical CLI on a runner

This is a simple action that can be used to install the Infisical CLI in a Github Actions runner.

There are multiple methods of installing depending on the context. The easiest method is to install through NPM, but in cases where a project is not using Node.js or if the version of Node.js is too old to correctly install the package, an operating system-specific method must be used.

Inputs

  • method: required, the installation method
  • version: optional, the version of the CLI to install

The method input is required, but has a default value.

Method Description Requirements
npm Install through NPM Node.js installed, version 18 or later
ubuntu Install through apt on Ubuntu Linux Ubuntu-based runner

Usage

Note that the @v1 at the end of the uses line should reference the latest release tag for this repository.

For a Node.js project:

- name: Install Infisical CLI
  uses: enerflo/install-infisical-action@v1

Install a specific version of the Infisical CLI:

- name: Install Infisical CLI
  uses: enerflo/install-infisical-action@v1
  with:
    version: "0.34.2"

Install in an Ubuntu runner:

- name: Install Infisical CLI
  uses: enerflo/install-infisical-action@v1
  with:
    method: ubuntu