first try

This commit is contained in:
2025-07-06 12:02:16 +02:00
parent a4d88e5ea3
commit 34fb0e764d
4 changed files with 28 additions and 55 deletions

View File

@ -1,62 +1,27 @@
# Setup SOPS in GitHub Actions
# Setup SOPS and AGE in Gitea Actions
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/nhedger/setup-sops?label=latest&logo=github)](https://github.com/marketplace/actions/setup-sops)
[![Test](https://github.com/nhedger/setup-sops/actions/workflows/test.yaml/badge.svg)](https://github.com/nhedger/setup-sops/actions/workflows/test.yaml)
[![Integrate](https://github.com/nhedger/setup-sops/actions/workflows/integrate.yaml/badge.svg)](https://github.com/nhedger/setup-sops/actions/workflows/integrate.yaml)
This is forked and merged from
**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.
[nhedger/setup-sops](https://github.com/nhedger/setup-sops)
[alessiodionisi/setup-age-action](https://github.com/alessiodionisi/setup-age-action)
```yaml
- name: Setup SOPS
uses: nhedger/setup-sops@v2
- name: Setup SOPS and AGE
uses: actions/setup-sops-age@v1
with:
# The version of SOPS to install.
# This input is optional and defaults to "latest".
# Example values: "3.7.3", "latest"
version: "latest"
sopsVersion: "latest"
# The version of AGE to install.
# This input is optional and defaults to "latest".
# Example values: "3.7.3", "latest"
ageVersion: "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 }}
token: "<your githut 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).