https://github.com/nhedger/setup-sops
✅ Setup SOPS in GitHub Actions
https://github.com/nhedger/setup-sops
github-actions setup-actions sops
Last synced: about 1 year ago
JSON representation
✅ Setup SOPS in GitHub Actions
- Host: GitHub
- URL: https://github.com/nhedger/setup-sops
- Owner: nhedger
- License: mit
- Created: 2023-05-01T16:03:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T17:19:11.000Z (over 1 year ago)
- Last Synced: 2025-03-26T12:51:17.029Z (over 1 year ago)
- Topics: github-actions, setup-actions, sops
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/setup-sops
- Size: 931 KB
- Stars: 9
- Watchers: 0
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Setup SOPS in GitHub Actions
[](https://github.com/marketplace/actions/setup-sops)
[](https://github.com/nhedger/setup-sops/actions/workflows/test.yaml)
[](https://github.com/nhedger/setup-sops/actions/workflows/integrate.yaml)
**Setup SOPS** is a GitHub action that provides a cross-platform interface
for setting up [SOPS](https://github.com/getsops/sops) in GitHub
Actions runners.
## Inputs
The following inputs are supported.
```yaml
- 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.
```yaml
- name: Setup SOPS
uses: nhedger/setup-sops@v2
- name: Run SOPS
run: sops --version
```
### Specific version
Install version `3.7.3` of SOPS.
```yaml
- 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](LICENSE.md).