1
0
Fork 0
mirror of https://github.com/nhedger/setup-sops synced 2026-05-21 08:10:27 -04:00
No description
Find a file
renovate[bot] 18e52f3634
chore(deps): pin dependency renovate to 43.76.4 (#162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 15:12:05 +01:00
.github ci: improve validation 2026-03-16 15:00:01 +01:00
dist chore: update deps 2025-04-18 11:38:25 +02:00
scripts chore: upgrade deps 2026-03-16 14:50:55 +01: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 feat!: switch to node 24 2026-03-16 14:47:31 +01: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
bun.lock chore(deps): pin dependency renovate to 43.76.4 (#162) 2026-03-16 15:12:05 +01: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): pin dependency renovate to 43.76.4 (#162) 2026-03-16 15:12:05 +01: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.