Skip to content
lock

GitHub Action

Setup SOPS

v2.0.0 Latest version

Setup SOPS

lock

Setup SOPS

Setup SOPS in GitHub Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup SOPS

uses: nhedger/[email protected]

Learn more about this action in nhedger/setup-sops

Choose a version

Setup SOPS in GitHub Actions

GitHub release (latest SemVer) Test Integrate

Setup SOPS is a GitHub action that provides a cross-platform interface for setting up SOPS in GitHub Actions runners.

Inputs

The following inputs are supported.

- name: Setup SOPS
  uses: nhedger/setup-sops@v2
  with:

    # The version of SOPS to install.
    # This input is optional and defaults to "latest".
    # Example values: "3.7.3", "latest"
    version: "latest"

    # The GitHub token to use to authenticate GitHub API requests.
    # This input is optional and defaults to the job's GitHub token.
    # Example value: ${{ secrets.GITHUB_TOKEN }}
    token: ${{ github.token }}

Examples

Basic example

Setup the latest version of SOPS.

- name: Setup SOPS
  uses: nhedger/setup-sops@v2

- name: Run SOPS
  run: sops --version

Specific version

Install version 3.7.3 of SOPS.

- name: Setup SOPS
  uses: nhedger/setup-sops@v2
  with:
    version: 3.7.3

- name: Run SOPS
  run: sops --version

License

The scripts and documentation in this project are licensed under the MIT License.