Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamaranl/1password-load-secrets-action
A slightly better version of 1Password's "Load secrets from 1Password" action
https://github.com/kamaranl/1password-load-secrets-action
continuous-delivery continuous-deployment continuous-integration developer-tools
Last synced: 9 days ago
JSON representation
A slightly better version of 1Password's "Load secrets from 1Password" action
- Host: GitHub
- URL: https://github.com/kamaranl/1password-load-secrets-action
- Owner: KamaranL
- License: mit
- Created: 2024-07-09T12:47:18.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-10T01:00:30.000Z (6 months ago)
- Last Synced: 2024-07-11T04:17:08.897Z (6 months ago)
- Topics: continuous-delivery, continuous-deployment, continuous-integration, developer-tools
- Language: TypeScript
- Homepage:
- Size: 759 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 1Password Load Secrets Action
> Loads secrets into your GitHub runner from 1Password
[![view on GitHub](https://badgen.net/github/license/KamaranL/1password-load-secrets-action?cache=3600)](https://github.com/KamaranL/1password-load-secrets-action/blob/HEAD/LICENSE.txt)
[![view on GitHub](https://badgen.net/github/release/KamaranL/1password-load-secrets-action/stable?icon=github&label=latest&cache=3600)](https://github.com/KamaranL/1password-load-secrets-action)A slightly better version of [Load secrets from 1Password](https://github.com/marketplace/actions/load-secrets-from-1password) by [1Password](https://github.com/1Password)
Refer to [1Password's developer documentation](https://developer.1password.com/docs/ci-cd/github-actions/) for more on how you can use this action.
## Features
- Persistent install of 1Password CLI throughout the entire job
- **Windows** runner support
- All the original features from [Load secrets from 1 Password](https://github.com/marketplace/actions/load-secrets-from-1password)## Usage
```yaml
on: workflow_dispatch
jobs:
matrix_jobs:
strategy:
matrix:
os: ['ubuntu', 'macos', 'windows']
runs-on: ${{ matrix.os }}-latest
continue-on-error: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_TOKEN }}
steps:
- uses: KamaranL/1password-load-secrets-action@v1
env:
GH_TOKEN: op://Integrations/GitHub.kamaranl.CICD/credential- run: |
Write-Host "GH_TOKEN: $env:GH_TOKEN"
shell: powershell
if: matrix.os == 'windows'- run: |
echo "GH_TOKEN: $GH_TOKEN"
if: matrix.os != 'windows'- run: op whoami
```## Acknowledgements
- Thanks to [1Password]((https://github.com/1Password)) for developing such a great product