1
0
Fork 0
mirror of https://github.com/nhedger/setup-sops.git synced 2025-10-28 23:46:55 -05:00
Setup SOPS in GitHub Actions https://github.com/marketplace/actions/setup-sops
Find a file
dependabot[bot] 2ef10cee83
chore(deps-dev): bump unbuild from 3.5.0 to 3.6.1 (#115)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-17 16:38:48 +02:00
.github chore(deps): bump actions/checkout from 4 to 5 (#114) 2025-10-17 16:38:32 +02:00
dist chore: update deps 2025-04-18 11:38:25 +02:00
src chore: update biome 2025-06-26 18:38:47 +02:00
.editorconfig chore: set indent size to 4 2023-06-09 21:08:35 +02:00
.gitignore chore: initialize 2023-05-01 18:02:51 +02:00
action.yaml fix: release asset file name change (#25) 2023-09-18 15:53:58 +02:00
biome.json chore: update biome 2025-06-26 18:38:47 +02:00
build.config.ts chore: update deps 2024-04-12 18:39:30 +02:00
lefthook.yml chore: run pre-commit only if .ts files have changed 2023-11-08 19:41:34 +01:00
LICENSE.md chore: initialize 2023-05-01 18:02:51 +02:00
package.json chore(deps-dev): bump unbuild from 3.5.0 to 3.6.1 (#115) 2025-10-17 16:38:48 +02:00
pnpm-lock.yaml chore(deps-dev): bump unbuild from 3.5.0 to 3.6.1 (#115) 2025-10-17 16:38:48 +02:00
README.md fix: rename mozilla org to getsops 2025-01-03 17:32:21 +01:00
tsconfig.json chore: update deps 2024-04-12 18:34:09 +02:00

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.