{"id":20424008,"url":"https://github.com/nhedger/get-sops-secret","last_synced_at":"2025-07-04T02:34:06.958Z","repository":{"id":175384310,"uuid":"653838959","full_name":"nhedger/get-sops-secret","owner":"nhedger","description":"✅ Retrieve SOPS-encrypted secrets in GitHub Actions.","archived":false,"fork":false,"pushed_at":"2023-09-25T10:23:50.000Z","size":10,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-04T05:06:53.285Z","etag":null,"topics":["github-actions","sops"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nhedger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yaml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["nhedger"]}},"created_at":"2023-06-14T21:10:35.000Z","updated_at":"2023-06-16T06:03:51.000Z","dependencies_parsed_at":"2025-01-15T14:54:24.714Z","dependency_job_id":null,"html_url":"https://github.com/nhedger/get-sops-secret","commit_stats":null,"previous_names":["nhedger/get-sops-secret"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nhedger/get-sops-secret","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhedger%2Fget-sops-secret","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhedger%2Fget-sops-secret/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhedger%2Fget-sops-secret/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhedger%2Fget-sops-secret/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nhedger","download_url":"https://codeload.github.com/nhedger/get-sops-secret/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhedger%2Fget-sops-secret/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263434282,"owners_count":23465930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","sops"],"created_at":"2024-11-15T07:08:26.311Z","updated_at":"2025-07-04T02:34:06.904Z","avatar_url":"https://github.com/nhedger.png","language":null,"funding_links":["https://github.com/sponsors/nhedger"],"categories":[],"sub_categories":[],"readme":"# Get SOPS secret in GitHub Actions\n\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/nhedger/get-sops-secret?label=latest\u0026logo=github)](https://github.com/marketplace/actions/get-sops-secret)\n[![Test](https://github.com/nhedger/get-sops-secret/actions/workflows/test.yaml/badge.svg)](https://github.com/nhedger/get-sops-secret/actions/workflows/test.yaml)\n\nThis actions provides a straightforward way to get a single secret from a SOPS encrypted file\nand outputs it as a GitHub Actions output.\n\n## Inputs\n\nThe following inputs are supported.\n\n```yaml\n- name: Get SOPS secret\n  uses: nhedger/get-sops-secret@v1\n  with:\n\n    # Path to the SOPS encrypted file that contains the secret.\n    # Required.\n    secrets-file: /path/to/secrets.yaml\n\n    # Name of the secret to retrieve\n    # Required.\n    secret-name: my-secret\n\n    # AGE private key\n    # Required.\n    age-private-key: ${{ secrets.AGE_PRIVATE_KEY }}\n\n    # SOPS version to use for decrypting the file.\n    # Optional.\n    # Default: latest\n    sops-version: latest\n```\n\n## Outputs\n\nThis actions returns single `secret` output with the value of the secret.\n\n## Example\n\n```yaml\n- name: Get SOPS secret\n  uses: nhedger/get-sops-secret@v1\n  id: get-secret\n  with:\n    secrets-file: /path/to/secrets.yaml\n    secret-name: my-secret\n    age-private-key: ${{ secrets.AGE_PRIVATE_KEY }}\n\n- name: Print secret\n  run: echo ${{ steps.get-secret.outputs.secret }}\n```\n\n## License\n\nThe scripts and documentation in this project are licensed under\nthe [MIT License](LICENSE.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhedger%2Fget-sops-secret","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhedger%2Fget-sops-secret","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhedger%2Fget-sops-secret/lists"}